Understanding decision columns
They allow the action to be varied according to the result of the condition. There are up to ten decision columns available in a rule set.
The result of a condition is always either Yes or No, and a different action may be required for each result. The result of a condition is entered as Y or N in the decision columns for the condition. The action required for a result is identified with an X in the same decision column on the appropriate action statement.
For example, a business rule is required to check the value in ledger analysis 5. If it contains the value P01, the rule should set the value of ledger analysis 6 to ABC. If ledger analysis 5 contains any other value, ledger analysis 6 should be set to 123.
In this example, decision column 1 is used to identify the action if the result of the condition is Yes, and decision column 2 is used to identify the action if the result is No.
Command | Value 1 | Operator | Value 2 | Decision Column 1 | Decision Column 2 |
IF | Ledger Analysis 5 | = | P01 | Y | N |
SET | Ledger Analysis 6 | = | ABC | X | |
SET | Ledger Analysis 6 | = | 123 | X |