Home > lang > goto 
GOTO
GOTO Label

Jumps to a label declared elsewhere in the function.

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

Example

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

See also

Miscellaneous Control Structures, · Labels