Condition
The condition control allows a sequence of steps to be executed, only if some conditions are met. If not, the steps are skipped and the execution continues with the following condition steps.
Based on the result of an expression, it allows your automation to have multiple outcomes, that determine the following step.
Using the Condition Control
With the control condition, you can add numerous activities to your workflow that will determine the following step, depending on conditions that you set.
-
In your automation, on the right-hand side panel, go to the Controls section.

-
Drag and drop Condition in the workflow of your automation.
-
Select Condition. The Condition side panel appears.
On the side panel you can:-
edit the name of the condition control
-
set and add condition expressions
-
add a list of output parameters for the condition
-
-
To edit the condition expression, click the button on the right of the Condition Expression field and click Edit Formula.
The expression editor dialog opens where you can manually type your expression. For more information, see Expression Editor.
-
Type an expression.
-
Click Test to check that your expression is valid.
-
Click Save Expression.
-
-
To add an additonal condition branch, click Add Condition.

-
Optional: Click Add Parameter to add an output parameter to each condition branch, and set a different value or variable depending on the branch that will be executed.

-
Enter a name. (1)
-
Set the value or expression for all the condition branches. (2)
-
-
Save and test your automation.
Use Case Example
The following use case determines with the information contained in an Excel file, if the customer is younger or older than the seniority age.

Prerequisite
You have created the automation My automation.
-
In your automation, on the right-hand side panel, got to the Activities section.
-
Drag and drop the activity Open Excel instance.
-
Drag and drop the activity Open Workbook.
Write the path of your Excel file in the input parameters.

-
Drag and drop the activity Get Values in your workflow.

-
Select Get Values. In the input parameters of the activity, enter the range of Excel cells in the input parameters, to retrieve the age of the customer.

-
Drag and drop a second activity Get Values in your workflow.
In the input parameters of the activity, enter the range of Excel cells in the input parameters, to retrieve the seniority age.

-
In the Controls section, drag and drop Condition.

-
Select Condition. In the parameters of the control:
-
Click on the button to set the expression of the first condition branch.

With this first condition expression, if the age of the customer retrieved in Step3 is higher or equal to the seniority age retrieved in Step4, the workflow of the automation continues through the first branch. If not, it continues through the default branch.
-
-
Now that the first condition expression is set, drag and drop the activity Set Values on the first condition branch and enter the range definition C2 and the values Senior in the input parameters.

-
For the default branch, drag and drop the activity Set Values and enter the range definition C2 and the values Junior in the input parameters.

If the age of the customer is higher than the seniority age, the following step sets the value Senior on the Excel worksheet. If that condition is not met, the following step sets the value Junior on the Excel worksheet.
-
Click Add Parameter to add the output parameters to each condition branch.

-
Drag and drop the activity Log.

-
Select Log Message. In the input parameters of the activity:
-
Click the button to set the message.

With this expression, if the first condition is met, the log activity generates the message Hello Senior user. If not, the log activity generates the message Hello Junior user.
-
-
Save and test your automation.
Results
The value Junior is entered on the Excel worksheet.

The log message Hello Junior user is displayed in the debugger.
