Previous Topic: Add Simple ConditionsNext Topic: Add Conditions Dependent on Attribute Values


Add Complex Conditions

You can add complex mutually exclusive conditions by adding any number of ELSE IF clauses to an IF action statement, followed by the ELSE clause. You can have a series of actions in which only one may take place based on the satisfaction of the corresponding ELSE IF condition.

The IF action statement that represents a complex mutually exclusive condition takes the following format:

IF condition_1
action_statement_list_1
[ELSE IF condition_2
action_statement_list_2]...
[ELSE
action_statement_list_3]...

The following example of an IF statement contains a complex mutually exclusive condition that tests the rating of a vendor:

IF processing vendor company_rating IS EQUAL TO "BEST"
MOVE processing vendor TO preferred vendor
ELSE IF processing vendor company_rating IS EQUAL TO
"FAIR" OR processing vendor company_rating IS
EQUAL TO "GOOD"
MOVE processing vendor to ok vendor
ELSE
MOVE processing vendor TO export vendor