Command: goto

Syntax

goto <label>

Description

Move execution control to a command label within the current macro.

Parameters

Switches

None

Notes

In keyboard input mode, this command will have no effect.

A label is defined by a $<name> statement, and must not be within a command block { and }.

An occasional use of the goto command is acceptable, but overuse is not recommended.

Examples

if (err) goto jail
#... other stuff
$jail
!Do not pass GO, do not collect $200

See Also

Commands:

exec, top