GOTO

This command will jump to the specified label in the program.

  Syntax
GOTO JumpLabel
  Parameters
JumpLabel
Value
Enter the appropriate value here.

  Returns

This command does not return a value.

  Description

Unlike the GOSUB command, you cannot return from a call when using the GOTO command. The label can be made up from any combination of alphabetic characters, but you must end the declaration of the label using a colon(:). You only need to use a colon when you are declaring the label, and should not be used when calling the label from a GOTO command.

  Example Code
PRINT "start"
GOTO _jumplabel
WAIT KEY
END
_jumplabel:
PRINT "new location in code"
END
  See also

CORE Commands Menu
Index