Show TOC

If Else If ActionLocate this document in the navigation structure

Use

A conditional action allows for conditional execution of action blocks. This is essentially a set of if-then blocks (with successive if-then blocks separated by an "else" ) and an optional else block (without a condition).

Syntax

If (Boolean-Expression) then Action-Block

If (Boolean-Expression) then Action-Block

else

Action-Block

If (Boolean-Eexpression) then Action-Block

...

Else if (Boolean-Expression) then

Action-Block

...

Where Action-Block = Action1 Action2 … Actionk

Example

If (CustomerSchema:CreditHistory Equals "Good") then

 
 

Execute rule "CalculateDiscountsRule"

Else if (CustomerSchema:CreditHistory Equals "Average") then

 

Execute rule "CalculateNonDiscountsRule"