GO TO
Syntax
Continues (jumps) the execution at the given label or line number.This sentence exists just for compatibility with legacy BASIC dialects. You should use DO...LOOP, FOR, SUB or FUNCTION instead.
You can't GOTO into a function or sub.
Example with GO TO
This will print This is executed before END
and then jump into
line 20, finishing the program.
Remarks
- This statement is Sinclair BASIC compatible.