EasyManua.ls Logo

Husky Hunter - Page 209

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS
SECTION 5.8
GOTO
5.8,2 Function GOTO branches unconditionally to a specified line number.
Syntax
GOTO line number
GOTO numeric expression
Examples GOTO 50
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.
Examples:
GOTO A or GOTO A*100
are equally valid,
The program sequence:
20 ZB=150
30 GOTO ZB
150 PRINT ''THIS IS LINE"; ZB
would give: THIS IS LINE 150
Remarks GOTO is always used wi lh an argument Cline 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
dis play:
*LNo Error in line 150*
If the GOTO line was unnumbered, the error message line
number will be mear,ine;less.
VEh.V091· PAGE 5 - 40