GO TO
Syntax
Section titled “Syntax”GO TO <label>GOTO <label>
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
Section titled “Example with GO TO”10 GOTO 3020 END30 PRINT "This is executed before END"40 GOTO 20
This will print This is executed before END
and then jump into
line 20, finishing the program.
Remarks
Section titled “Remarks”- This statement is Sinclair BASIC compatible.