<< Click to Display Table of Contents >> Navigation: Reference > Commands > GO TO |
There are two possible forms for the GO TO command:
GO TO position,
GO TO svar (position1, position2, ... ),
In the first form, execution causes control to be transferred to the position command specified. The second form is called a "computed GO TO" and causes control to be transferred to position n where n is the true bit in svar. If svar is empty (value 0), then execution continues with the next command.
If any possible destination of the GO TO command is previously defined in the code (if the jump might cause control to be transferred backwards), a warning message is printed (unless F=NWBJ). Note that jumping back is not allowed at all in Tables Stages.
The GO TO command can be used to jump past a part of the code when executing, and is usually done conditionally (specified following an IF command).
Examples of GO TO commands:
go to @496,
go to finish,
go to $sex (@a,@b),
go to $age (@first, @2nd, @3, @iv, @cinq),