Conditions can have their criteria ‘grouped’ within Avvoka - this is usually required when questions involving complex conditions need to be built. Users can add multiple statements by clicking on the ‘+’ button in the top-right corner of the Condition Builder. A dropdown menu will appear, allowing users to select between ‘Add Group’ and ‘Add Condition’.
Add Condition:
By clicking ‘Add Condition’, a new row of blank fields will appear below your first logical statement, allowing you to set up another logical statement. Toggle between the ‘And | Or’
buttons in the top left corner of the Condition Builder to adjust the condition such that it is fulfilled if both logical statements are fulfilled (And), or if either logical statement is fulfilled (Or).
Add Group:
‘Add Group’ is the first option in the dropdown menu when the ‘+’ button is accessed on the condition builder. Clicking on it will create a first-level group around your first logical statement, similar to how ‘Add Condition’ would operate by creating a group around the two logical statements.
Add Group allows you to set up conditions in a more complex manner. Two common scenarios would be:
One logical statement always required + a pool of logical statements where fulfilment of any of them is sufficient
Either VARIABLE 1 or VARIABLE 2 is needed for this condition. Thus, a second-level group with an OR operator is set up around it. Since SERVICE LEVEL is always needed, it remains at the first level with an AND operator. This creates two possibilities to fulfil this condition.
a. SERVICE LEVEL equals Yes + VARIABLE 1 equals Yes
b. SERVICE LEVEL equals Yes + VARIABLE 2 equals Yes
Two separate groups which may be used to fulfil the condition
Here, two second-level AND groups are set up because either group can fulfil the condition. Since either group suffices, the first-level operator is set to OR. This creates two possibilities to fulfil this condition.
a. VARIABLE 1 equals Yes + ATTRIBUTE 1 equals Yes
b. VARIABLE 2 equals Yes + ATTRIBUTE 2 equals Yes