GOTO branches unconditionally to a specified line number.
causes program execution to commence immediately at line 50.
10 GOTO 100
causes program execution to skip from line 10 to line 100.
The line number may also be a variable or an expression.
GOTO A or GOTO A*100
are equally valid.
The program sequence:
20 ZB=150 30 GOTO ZB 150 PRINT "THIS IS LINE"; ZB
THIS IS LINE 150
GOTO is always used with an argument (line number). If used as an immediate command, GOTO will cause program execution to commence from the line number specified. If used as part of a program, GOTO will cause program execution to skip to the line number specified. If the line specified is not present in memory HUNTER will display:
*LNo Error in line 150*
If the GOTO line was unnumbered, the error message line number will be meaningless.