LABEL
The LABEL
instruction declares a jump
point that can be reached by a GOTO
.
Syntax
LABEL label-id:
- label-id is a unique identifier in a
MAIN
,REPORT
, orFUNCTION
program block. - The label-id must be followed by a colon (
:
).
Usage
The LABEL
instruction declares a statement label, making the next statement
one to which a GOTO
statement can
transfer program control.
Example
MAIN
DISPLAY "Line 2"
GOTO line5
DISPLAY "Line 4"
LABEL line5:
DISPLAY "Line 6"
END MAIN