Examples of Goto

Example:

          GTM>GOTO TIME+4
        

This GOTO command transfers control from Direct Mode to the line that is four (4) lines after the line labeled TIME (in the currently active routine). Using an offset is typically a debugging technique and rarely used in production code.

Example:

          GOTO A:x<0,^A:x=0,A^B
        

This GOTO command transfers control to label A in the current routine, if x is less than zero (0), to routine ^A if x is equal to zero (0), or to label A in routine ^B. Once any of the transfers occurs, the rest of the arguments have no effect.