Documentation Index
Fetch the complete documentation index at: https://ai-kb.automationanywhere.com/llms.txt
Use this file to discover all available pages before exploring further.
The If/Else node evaluates one or more conditions and splits the workflow into two branches: True (conditions met) and False (conditions not met). Each branch has its own + button on the canvas to continue building that path independently.
Configuration
Conditions
Each condition consists of three parts:
| Field | Description |
|---|
| Variable | The variable to evaluate. Select from available workflow variables. |
| Type & Comparison | The data type and comparison operator to apply. |
| Value | The value to compare against. Select a variable or enter a value directly. |
Click + Add Condition to add multiple conditions. Use the Join with dropdown to define how conditions are combined:
| Option | Description |
|---|
| AND | All conditions must be met for the True branch to execute. |
| OR | Any one condition being met is sufficient for the True branch to execute. |
Type & Comparison Options
| Type | Available Comparisons |
|---|
| String | exists, does not exist, is empty, is not empty, is equal to, is not equal to, contains, does not contain, starts with, does not start with, ends with, does not end with, matches regex, does not match regex |
| Number | exists, does not exist, is empty, is not empty, is equal to, is not equal to, is greater than, is less than, is greater than or equal to, is less than or equal to |
| Date & Time | exists, does not exist, is empty, is not empty, is equal to, is not equal to, is after, is before, is after or equal to, is before or equal to |
| Boolean | exists, does not exist, is empty, is not empty, is true, is false, is equal to, is not equal to |
| Array | exists, does not exist, is empty, is not empty, contains, does not contain, length equal to, length not equal to, length greater than, length less than, length greater than or equal to, length less than or equal to |
| Object | exists, does not exist, is empty, is not empty |
Conditional Branching
The If/Else node produces two output branches on the canvas:
| Branch | Description |
|---|
| True | Connects to steps that run when the condition(s) are met. |
| False | Connects to steps that run when the condition(s) are not met. |
Results
The Results tab shows which branch was taken and the evaluated condition values after the node executes.