Menu

keywords-conditionalif

Will Pittenger

Used to implement conditional compilation. The syntax is the same as for an if/then/else statement except for the exists keyword. However, any variable referenced in the condition must be a conditional variable. Plus, unless the exists keyword is used before the variable being referenced, that variable must have already been declared. See the section [Conditional compilation] for more information.

\conditionalif\ /BooleanExpression/ \then\
  ' Some code
[\else\
  ' Some more code including another **conditionalif** if required
]

The /BooleanExpression/ must be as shown below:

[\not\] {\exists\ /ConditonalVariableIdentifier/ | /BooleanSubExpression/} [(\and\ | \or\ | \nand\ | \nor\ | \xor\ | \xnor\) [\not\] [\(\] [\not\] {\exists\ /ConditionalVariableIdentifier/ | /BooleanSubExpression/}]

The /ConditionalVariableIdentifier/ must be a conditonal variable you want to test the existence of. The /BooleanSubExpression/ must be as shown below:

(/BooleanConditionalVariable/ | /CondititionalVariableIdentifierOrExpression/ (\==\ | \<>\ | \><\ | \<\ | \<=\ | \=<\ | \=>\ | \>=\ | \>\) /CondititionalVariableIdentifierOrExpression/

The /BooleanConditionalVariable/ must be an existing boolean conditional variable. /CondititionalVariableIdentifierOrExpression/ must be an expression that limited to
conditional variables and constants.


Related

Wiki: Conditional compilation
Wiki: Keywords
Wiki: keywords-conditional
Wiki: keywords-const
Wiki: keywords-else
Wiki: keywords-exists
Wiki: keywords-var