Skip to main content

Software > Software Development > IBM REXX Family >

NetRexx

Technical detail

Nop instruction

   nop;

nop is a dummy instruction that has no effect. It can be useful as an explicit 'do nothing' instruction following a then or else clause.

Example:

  select
when a=b then nop -- Do nothing
when a>b then say 'A > B'
otherwise say 'A < B'
end

Note: Putting an extra semicolon instead of the nop would merely insert a null clause, which would just be ignored by NetRexx. The second when clause would then immediately follow the then, and hence would be reported as an error. nop is a true instruction, however, and is therefore a valid target for the then clause.

 

 

PreviousTable of contents Next
We're here to help
Easy ways to get the answers you need.
E-mail us

or call us at
877-426-3774
Priority code:
104CBW67