GO |
![]() ![]() ![]() |
The GO command is used within paragraphs to jump to a labelled line.
Format
GO label{:}
Any number of lines in a paragraph may be labelled. A label name consists of any sequence of characters except for spaces and mark characters. The label must be terminated with a colon and, if there is a command on the same line as the label, there must be at least one space after the colon.
The label name in the GO command may be followed by an optional colon with no intervening spaces.
The command processor scans forwards through the current paragraph for a line with the given label. An error is reported if the label is not found and the paragraph is aborted. It is valid for a paragraph to contain multiple instances of the same label name though this is not recommended as it can make maintenance more difficult.
It is not possible to jump backwards within a paragraph or from a GO command in one paragraph to a label in another paragraph.
Example
A paragraph containing the sequence
DISPLAY Line 1 GO SKIP DISPLAY Line 2 DISPLAY Line 3 SKIP: DISPLAY Line 4 DISPLAY Line 5
would display
Line 1 Line 4 Line 5 |