What happens when we want to test for a subset of certain conditions together before evaluating them with the rest of the conditions? Using multiple conditions alone would only allow you to choose whether all or any one of them should be true. But what if there is one subset of conditions where all have to be true and another subset where it is enough that one case is fulfilled?
This is where Groups are useful. Groups create a subset of conditions which must be evaluated together first before considering the grouped conditions alongside the other conditions. The image below represents the following IF statement: If the country of origin is not North Korea and either the Legal department has approved the transaction or the volume of transactions is below 9500 EUR.
As labeled below, the IF statement consists of the following:
[ 1 ] represents the first condition: If the country of origin is not North Korea.
[ 2 ] represents a Group of conditions consisting of two individual conditions, [ 3 ] If the Legal Department has approved the transaction and [ 4 ] If the volume of transactions is below 9500 EUR.
Conditions which must be evaluated together are connected by a grey line and are within the same blue box. Different shades of blue boxes denote different groups. Note that [ 1 ] and [ 2] are in the same light blue box and connected by a grey line.
Condition [ 2 ] is a Group with two individual conditions, [ 3 ] and [ 4 ]. Correspondingly, [ 3 ] and [ 4 ] are in a darker blue box and are connected by their own grey line.
The boxes are evaluated from the innermost (or darkest blue) box to the outermost (or lightest blue) box. The conditions within each blue box are evaluated based on the ALL / ANY selected at the top of each blue box. Thus, label [ 6 ] indicates that the dark blue box containing [ 3 ] and [ 4 ] is evaluated by ANY. That is, condition [ 2 ], which is the Group containing [ 3 ] and [ 4 ], is fulfilled if either [ 3 ] or [ 4 ] or both are true.
Once we've evaluated the dark blue box, we know if condition [ 2 ] is true or false. Then, we can move on to the light blue box, which indicates how [ 1 ] and [ 2 ] must be evaluated. Label [ 5 ] at the top of the light blue box indicates that this box must be evaluated by ALL. That is, both [ 1 ] and [ 2 ] need to be true in order for the conditions to be met.
Remember, you can always use the trash icon directly to the right of each condition to delete that specific condition. Trash icons at the top right of a blue box will delete all the conditions contained within that blue box.
We have now covered the two major places to implement Conditions: in Conditional blocks and in Transitions. We have also learned how to create both simple and complex conditions using Groups.