GOTO |
GOTO Label
Function
Jump to the point in the program specified by Label.
Explanation
The GOTO instruction forces the SX to jump to the line of code that
immediately follows Label. A common use for GOTO is to create
endless loops; programs that repeat a group of instructions over and over.
For example:
Main: INC LEDs ' update count PAUSE 100 ' delay 0.1 seconds GOTO Main ' keep going
Related instructions: IF ... THEN and GOSUB