goto

Syntax

goto jumpLabel

Description

This command will jump to the specified label in the program. 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

print ( "start" )
goto _jumplabel
end

_jumplabel: print ( "new location in code" ) end