GOTO Verb
Syntax
GOTO lineref
Description
The GOTO verb causes a branch to the specified program line.
Parameter |
Description |
---|---|
lineref |
Branch line number. If the line does not exist, the branch goes to the first line following this line number. |
If a GOTO is executed in console mode, PRO/5 remembers the new line to execute. If a RUN command is issued, execution begins at the new line.
In a compound statement, only ELSE, FI, or REM can follow GOTO. If a BREAK statement follows a GOTO, it will be ignored. A tokenized version of this statement will produce an error, although a compiled version will not.
Examples
1000 IF A=M THEN GOTO 2000
>GOTO 5670
>RUN