A statement which transfers program control to a line with a specified or calculated line number.
GOTO 100 GOTO (X*10)
You may not GOTO a line which is outside the current FOR...NEXT, REPEAT...UNTIL or GOSUB loop.
If a calculated value is used, the program should not be RENUMBERed. A calculated value must be placed in parentheses.
The GOTO statement makes BBC BASIC (Z80) jump to a specified line number rather than continuing with the next statement in the program.
You should use GOTO with care. Uninhibited use will make your programs almost impossible to understand (and hence, debug). If you use REPEAT...UNTIL and FOR...NEXT loops you will not need to use many GOTO statements.
- GOTO <l-num>
- GOTO (<numeric>)