NET/MASTER Network Control Language (NCL) Reference Manual
NOP
Core Statements
2–36 106126 Tandem Computers Incorporated
NOP The NOP core statement performs no action. It can be used to provide an ELSE path
on an inner IF statement, thus allowing an outer ELSE path to be specified without
superfluous coding. See the following examples of this core statement.
NOP
Consideration
See also the IF core statement. You can use the NOP core statement within an IF
statement as a no action path.
Examples
The following example performs an action (indicated by statement) only if a
selected condition is false:
IF condition THEN
NOP
ELSE
statement
The previous example shows how to avoid any action for a true condition.
The following example executes &X = &X + &Z if the variable &NUMBER is neither
numeric nor alphabetic:
IF DATATYPE(&NUMBER,M) THEN
&X = &X + &Y
ELSE IF DATATYPE(&NUMBER,N) THEN
NOP
ELSE
&X = &X + &Z
The previous example shows how to avoid any action in a nested IF statement.