back to Command Reference
[All Models]
Branches unconditionally to a specified branch destination.
{ branch destination line number }
{ └─────────────┬─────────────┘ }
{ Line number }
GOTO { }
{ # program area number }
{ └────────┬────────┘ }
{ Single character; 0~9 }
GOTO 1000
GOTO #7
GOTO #n (where n is 0-9) causes program
execution to jump to the first line number of the specified program area. Execution
continues in that program area. Unlike GOSUB #n, there is no return to the
original program area.10 PRINT "PRESS [BRK]";
20 PRINT "TO HALT EXECIUTION" ;
30 GOTO 10
Line 30 returns execution to line 10.
This loop continues until BRK is pressed.