Table of Contents

Advertisement

116
CHAPTER 6 Command Reference
GOTO
Function:
{
Branched line No. ]
line No
.
#program area No.
Number 0 to 9
Unconditionally branches to a specified location.
Parameter:
Line No.:
Program area No.:
Explanation:
1 to 9999.
0 to 9.
1) Branches to a specified location.
®
2) When a branched location is a line
number,
branches to the specified line in
the current program area and executes the
program.
When the branched line
number does not exist, an error (Error 4)
occurs.
3) When the branched location is a program area number, branches to the
specified program area and executes the program from the beginning.
*A numeric expression can be used for the branched line number and the pro-
gram area number.
Example:
10 PRINT ''START'';
20 GOTO 100
30
PRINT "LINE
30"
40
END
100 BEEP 0 :BEEP
110 PR INT
120 PRINT"LINE
120"
130 GOTO
30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents