DEFINED


 

The DEFINED compiler directive allows conditional compilations based on the type of a specified label. The instruction uses the following format:

 

 

 

DEFINED({label})

 

Where:

label

Required. A valid data or program execution label.

Flags Affected: NONE

Note the following:

  1. This directive operator is only valid in %IF, CIF, %ELSEIF, or CELSEIF statements.

  2. The exact syntax of the directive must be followed.

  3. During compilation, the operator is replaced with a single digit as follows:

  4.  

    Digit

    When the label is ...

    0

    neither a data nor an execution label reference.

    1

    a data label reference.

    2

    an execution label reference.

    3

    both a data and an execution label reference.

 

See Also: Example Code, Compiler Directives

 



PL/B Language Reference DEFINE %ENCRYPTON