The GOTO command transfers execution to a location specified by its argument.
The format of the GOTO command is:
G[OTO][:tvexpr] entryref[:tvexpr][,...]
The optional truth-valued expression immediately following the command is a command postconditional that controls whether or not GT.M executes the command.
The required entryref specifies the target location for the control transfer.
The optional truth-valued expression immediately following the entryref specifies the argument postconditional, and controls whether GT.M performs a GOTO with that argument.
An indirection operator and an expression atom evaluating to a list of one or more GOTO arguments form a legal argument to a GOTO.
A GOTO command within a line following a FOR command terminates that FOR command.
For more information on entryrefs, refer to the "General Language Features of M" chapter in this manual.