GOTO

Skips all commands until it encounters the associated label.

Syntax

GOTO "Label"; <SKIPPED COMMANDS> :Label ; <COMMANDS OR EOF>
ParameterDescription

"Label"

A string of characters; not case-sensitive.

:Label

Target location, preceded by a colon (:) and associated with "Label". Processing skips to this label.

Notes

This command provides unconditional branching. This means that branching occurs regardless of the success or failure of previous commands.

Commands that follow :Label can implement error handling or stop processing. Processing skips all subsequent commands and moves to the associated label, where it resumes. Processing ignores even the EXIT command if it precedes :Label.

If EOF occurs before :Label is found, processing terminates.

Example

BUILDDIM 2 "NEWGENS.RUL" 2 "NEWGENS.TXT" 4 "REJREC.ERR";
    GOTO "NEWTARGET";          /* Forced branch */
    LOADDATA 2 "JANACT.TXT";     /* Skip LOADDATA */
    :NEWTARGET;                /* Move here */
    EXIT;                      /* and exit */