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.

X = 18
Goto LOOP3   ' forbidden
    
For X = 20 To -2 Step -2
    
LOOP3:
  Print "Loop2 "; X
    
Next

See also