English
Language : 

NSB8 Datasheet, PDF (49/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
grifo®
GOTO
STATEMENT:
GOTO <line number>
ACTION:
A GOTO statement causes an immediate jump to the specified line, instead of proceeding with the
normal sequence of statement execution. Regular sequential execution resumes at the specified line.
EXAMPLE PROGRAM:
10 PRINT “THIS PRINTS FIRST”
20 GOTO 40
30 PRINT “THIS NEVER PRINTS”
35 PRINT “THIS PRINTS THIRD”
37 END
40 PRINT “THIS PRINTS SECOND”
50 GOTO 35
REMARKS:
There may be no blank between GO and TO, GOTO is a single BASIC keyword.
Note that a <line number> must be a numeric integer constant. It may not be a variable or complex
expression.
ERROR MESSAGES:
LINE NUMBER ERROR
The specified line does not exist within the BASIC program.
OUT OF BOUNDS ERROR
The line number specified in the GOTO statement is larger than 65535 (note: this error occurs as soon
as the erroneos line is typed!).
SEE ALSO:
Section EXECUTION AND FLOW CONTROL
Statement EXIT
Statement ON ... GOTO
NSB8
Rel. 5.10
Page 37