Home| Printable Version
Complex Conditions can be constructed for a rule by combining multiple Conditions using AND, OR and XOR operators. Each operator can also contain other operators to allow very complex conditions to be easily set up. The following image shows an example complex condition, which is checking that the incoming data is for a male person whose age is either less than 16 or greater than 75. This may be used to check for an error condition that needs to be handled accordingly, for example. example complex condition   Like conditions, the operators can be easily added to the rule by dragging them into the condition area from the toolbar, and can be removed by clicking the delete cross button on the right hand side. Condition checks can be added to complex conditions by dragging them from the toolbar into the appropriate container. In all cases, a black line will indicate where the new component will be placed.
The behaviour is slightly different when dealing with operators in the following ways however.
A new operator can be placed 'around' an existing component. For example, if you already have a single condition that you now want to combine with a new condition, you can wrap the existing condition with the appropriate operator, and then add the new condition to it. To do this, you need to drag the new operator from the toolbar to the left or right edges of the existing component. A black border will appear to indicate that the operator is to be placed around the existing component. Deleting an operator with only one component within it, will not delete the child component, but will move it into the place of the operator being deleted.
 
Each operator can contain as many children as required, and the resulting logic is described below.
AND - All components contained by an AND operator must evaluate to true for the operator to give a true value. OR - At least one of the components contained by an OR operator must evaluate to true for the operator to give a true value. XOR - At least one, but not all, of the components contained by an XOR operator must evaluate to true for the operator to give a true value.
Simple Conditions Loop on this Selection