lang • goto

GOTO

GOTO Label

Jump to a label declared elsewhere in the function.

GOTO and labels cannot be used to enter a control structure. This is forbidden, even if the variables are preset.

= 18
GOTO LOOP3   ' forbidden
    
FOR X = 20 TO -2 STEP -2
    
LOOP3:
  PRINT "Loop2 "; X
    
NEXT

See also