Understanding condition statements
Condition statements are defined in event profiles and rule sets. A condition statement uses the IF command and produces a Yes or No result. The statement may be continued using an OR command.
A condition statement contains some or all of the following fields, depending on the command: Command, Value 1, Operator, Value 2.
For example:
Command | Value 1 | Operator | Value 2 |
IF | Account Code | = | 64050 |
An IF condition statement enables a selected data item, identified in Value 1, to be compared against any of the following in Value 2:
- another data item - for example, If Account Code = Supplier Code
- a literal value - for example, IF Account Code >= 64000
- a masked literal value - for example, IF Account Code = 64***
- a workspace value - for example, IF Transaction Date >= Work Space Date 1
- a keyword - for example, IF Account Code = SPACE.