In this article we are going to analyze the behavior of the conditional block “ELSE”.
The conditional block “ELSE” 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.
It goes into fact said that the block “ELSE” to be used needs an associated block “IF”.
The ELSE block is located in the menu: “Logic”, to access it you will also need to click on the search bar that will appear:
The “ELSE” 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.
Note: If an “End Flow” block is not indicated 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 you want to create a flow that when a new operation is created, automatically assigns the priority, assigning high priority if the urgency is high, otherwise you automatically assign medium priority.
To do this we will have to add an “If” block configured as follows:
Now in the right branch we are going to insert a block “Update Record” configured as follows:
In the left branch we are going to insert a “ELSE” block and in its right branch we will insert an “Update Record” block configured as follows:
The flow at the end will turn out to be as follows: