GOTO
 
Syntax

GOTO label
Description


Transfers code execution to a label.

GOTO's should be avoided and replaced with the more modern structures such as DO...LOOP, FOR...NEXT, and WHILE...LOOP.

But occasionally GOTO can be the best way to change the program flow.

Example

GOTO message


message:
PRINT "Welcome!

Differences from other BASICs

See also