Often you may need more than one condition when setting the applicable logic for transitions or conditional textblocks. In BRYTER, you can add an unlimited amount of conditions in a transition and set whether all of them or any of them has to be true for the condition to be satisfied.
We want to send our users to the Compensation node if:
The length of their flight was less than or equal to 1500km,
And the duration of the delay was greater than or equal to 3 hours,
And the duration of the delay was less than 5 hours.
All three conditions must be met in order for the action to occur. This can be represented in your module as shown below.
[ 1 ] First condition
You can specify multiple conditions which must be met. This is the first condition, consisting of a variable (Length of the flight), an operator (≤ "less than or equal to"), and a value (1500 km). Specify additional conditions using [ 3 ] Add condition below.
[ 2 ] Second condition
This is your second condition, Duration of the delay must be greater than or equal to 3 hours. Notice that this condition is in the same blue box as the first condition. In addition, this condition is connected to the first condition by a grey line to the left of the condition. This means that these two must be evaluated together. See [ 6 ] ALL / ANY to learn how to evaluate multiple conditions.
[ 3 ] Add condition
Click here to add another condition.
[ 4 ] Trash icon (one condition)
Use the trash icons directly to the right of each condition to delete that specific condition. All other conditions will be unaffected.
[ 5 ] Trash icon (all)
This trash icon will delete all of the conditions in this panel.
[ 6 ] ALL / ANY
If you specify more than one condition, you will notice that the conditions are all located in a blue box and that each condition is connected by a grey line to the left of the condition. This indicates that the conditions will be evaluated together.
There are two ways to evaluate multiple conditions: you can specify whether ALL of the conditions need to be fulfilled in order to trigger the action or if the action should be triggered if ANY of the conditions have been met. That is, if you select ALL, then all of the conditions need to be fulfilled. If even one is not fulfilled, no action will be taken. Conversely, if you select ANY, then if even one of the conditions is true, then an action will occur.
[ 7 ] Name
This title area will automatically populate based on the condition(s) you've specified. Think of it as a way to see your conditions at a glance.
Keywords: boolean operators; IF; THEN; ELSE; Bedingung