In this article we are going to analyze the behavior of the conditional block “ELSE”.
The conditional block “ELSE IF” is part of the flow control instructions as it allows you to direct the flow towards the execution of some blocks or others based on the veracity of the condition that characterizes the Associated “IF” block and the condition that characterizes it.
It goes into fact said that the block “ELSE IF” to be used needs an associated block “IF” and can be associated with one or more blocks “ELSE IF” but with a single block “ELSE”.
The block “ELSE IF”, is located in the menu: Logic, to access it will be in addition necessary to click on the search bar that will appear:
The “ELSE IF” block visually will have 2 branches: the left branch that is to be considered the continuation of the execution of the flow, and the right branch that will be executed if the condition of the associated “IF” block is evaluated as false and the condition specified in the “ELSE IF” block is evaluated as true.
Note: If an else block is not indicated in the left ramp or an “End Flow” block is not specified in the right branch after the last instruction the flow will first execute the right branch and then the left branch.
Example of configuration of the “ELSE IF” block
Suppose we want to extend the flow we created in the previous article.
Suppose you want to assign the newly created operation low priority in case the urgency is low.
To do this we will have to add a block “ELSE IF” before the ELSE block, to do this we will have to position ourselves on top of the else block and click the “+” symbol that will appear:
Once clicked we will have to enter from the “Logic” menu an element “ELSE IF” configured as follows:
In the right branch of the block “ELSE IF” go to insert a block “Update Record”, with the following configuration:
The flow in the end will turn out to be the following: