Executes the if condition based on whether or not a symbol is defined.
Syntax |
$ifdef bool exp1 [op] [bool expN]] ... $else ... $endif |
---|---|
exp1 |
These is a boolean expression composed as follows: •symbol <opr> const where <opr> is an operator chosen from: >, >=, <, <=, ==, <> and const is a numeric constant |
op |
Logic operator: and, and not, or, or not, xor (optional) |
expN |
These is another boolean expression (max. 5 included exp1) (optional) |
Note |
Priority rules: exp1,.., expN is evaluated first, then the sequence of other expression from left to right is evaluated, with no priority applied, between the various op |
Example of use:
|