![]() |
Retro Rocket OS
|
Transfers control unconditionally to the line with the given constant line number in the current program.
Forward jump
Simple loop with GOTO
GOTO performs a direct jump and does not unwind or restore any control structures.
This means you may jump:
Retro Rocket BASIC does not crash in these cases, but the program may later raise a runtime error if control structures no longer match the current execution state (for example, NEXT without FOR or RETURN without GOSUB).
This behaviour is defined.