label:
 
Syntax

name :
Description


GOTO and GOSUB go to a label.  Somewhere in the code is that target label.  A label can be any valid variable name followed by a colon :  .  A label can be the only element on a line.

MAIN: is a special case of label that will start execution of the program at somewhere other than the first line of code.

Example

...
GOSUB sayHello

....

sayHello:
PRINT "Hello"
RETURN


Differences from other BASICs

See also