NET/MASTER Network Control Language (NCL) Programmer's Guide
Explicit Branching
Controlling Execution Flow
5–42 106160 Tandem Computers Incorporated
Matching Labels—the GOTO and GOSUB Statements
The MATCH keyword after a GOTO or GOSUB statement specifies the method of
comparison you want performed between the label for which the GOTO or GOSUB is
searching and the labels it encounters. The default method of comparison is for an
exact match. (Remember that alphabetic characters are case-insensitive.)
The following table lists the values that can follow the MATCH keyword. These
values must be constant. You cannot use an expression that resolves to one of these
values.
Value Meaning
EQ The GOTO or GOSUB statement search stops at the first label that is generically equal to
the label specified by the GOTO or GOSUB statement.
NE The GOTO or GOSUB statement search stops at the first label that is generically not equal
to the label specified by the GOTO or GOSUB statement.
GT The GOTO or GOSUB statement search stops at the first label that is greater than the label
specified by the GOTO or GOSUB statement.
LT The GOTO or GOSUB statement search stops at the first label that is less than the label
specified by the GOTO or GOSUB statement.
GE The GOTO or GOSUB statement search stops at the first label that is greater than or equal
to the label specified by the GOTO or GOSUB statement.
LE The GOTO or GOSUB statement search stops at the first label that is less than or equal to
the label specified by the GOTO or GOSUB statement.
Hint To improve the performance of an NCL process, minimize use of the MATCH keyword, especially if there
are many labels through which to search.