Conditions allow users to branch a workflow, allowing the workflow to go down different paths. This article gives more details on the Condition action.
Table of Contents
- Understanding the Condition Action
- Important Considerations in Condition Actions
- Using a Condition Action to Branch a Workflow
- How a Condition Action Appears in the User Application
Understanding the Condition Action
Conditions allow users to branch, or take a workflow, down different paths.
The Condition action comprises one (1) or more IF statements and an ELSE statement, with the Workflow branching into two or more paths depending on the number of IF statements.
Condition Actions with a Single IF Statement
In a Condition action with a single IF statement, if the action meets the condition in the IF statement, it will branch into the path of the Workflow covered by the statement; if it meets the condition in the ELSE statement, it branches into the other path of the Workflow instead.
A Condition action with one If statement and an ELSE statement can be summarized as follows:
If Statement 1, GOTO Action 1
GOTO Action 2
Here is how a Condition action with a single IF statement looks in the Action Editor.
The screenshot below shows a Condition action branching into separate paths for the IF and ELSE statements.
Condition Actions with Multiple IF Statements
In a Condition action with two IF statements, the action must meet all the conditions in the IF statements before it branches into the path covered by the IF statements.
For multiple IF statements, the order in which they are arranged in the Action Editor matters. AUTTO goes through the first IF statement, then the next one until it reaches the last one. The workflow will branch down the IF statement that meets all the conditions and will not consider any subsequent statements.
A Condition action with two or more IF statements can be summarized as follows:
If Statement 1,
... (this denotes that you can add as many If statements if needed)
If Statement n, GOTO Action 1
Here is how a Condition action with multiple IF statements looks in the Action Editor.
The screenshot below shows a Condition action branching into three separate paths. Two of these paths are defined under two separate IF statements while the third one is defined by the ELSE statement.
The order of IF statements is important
In a workflow with multiple IF statements, the order of the IF statements in the Action Editor determines the path of the workflow. For example, if the condition in the first IF statement is already met, then the workflow will not go through the other IF statements nor the Else statement any more.
In case you mix up the order, you can reorder the IF statements by positioning your cursor over the button in an IF statement, then dragging the statement to another place within the Action Editor. This is shown in the following screenshot.
Using a Condition Action to Branch a Workflow
NOTE: Variations of the Condition action are used throughout AUTTO. For example, the Conditional  action as well as the Condition editor used in the Page, Email, and Assign User actions are similar to the Condition action.
How a Condition Action Appears in the User Application
The Condition action does its work behind the scenes - it does not appear in the Workflow displayed on the User Application. Rather, it sends users down into different paths, depending on the information gathered in the workflow's earlier stages.