IF Conditional Block

In this article we are going to analyze the behavior of the conditional block “IF”.

The conditional block “IF” is part of the flow control instructions as it allows to direct the flow towards the execution of some blocks or others based on the veracity of the condition that characterizes it.

The “IF” block is located in the menu: Logic, to access it you will also need to click on the search bar that will appear:

The “IF” block visually will have 2 branches: the left ramo or the branch that will be executed if the condition is evaluated false, this branch is to be considered the continuation of the execution of the flow, and the right branch that will be executed if the condition 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 “IF” block

Suppose that when creating an operation we want to assign a specific mailbox if the type of service is “Incident”.

The “IF” block will then be configured as follows:

And the flow will then turn out to be:

Now in the right branch we are going to insert a block “Update Record” configured as follows:

The flow will eventually turn out to look like this:

Once this flow is activated we will see that the new “Incident” Operations will have as a mailbox box the one defined in the flow.