Conditional statements
Conditional statements are formulas that are processed only when specific conditions occur. You can nest conditional statements to any depth.
A boolean expression can contain constants, line references, relational operators (<, <=, =, >=, >, <>), and boolean operators (and, or, not). The boolean operators have lower precedence than the relational operators. Use parentheses to enforce a particular precedence.
A conditional formula has the following form:
If Boolean expression then
algebraic expression
…
ElseIf Boolean expression then
algebraic expression
…
Else
algebraic expression
…
EndIf
There are also three special symbols that reference stages of the
consolidation process:
rpt
,
xlt
, and
cons
.
Repeat the ElseIf portion of the conditional statement as many times as necessary to cover all the conditions for assigning a value. The Else portion of the conditional statement is optional.