Skip to main content

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:
FieldDescription
VariableThe variable to evaluate. Select from available workflow variables.
Type & ComparisonThe data type and comparison operator to apply.
ValueThe 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:
OptionDescription
ANDAll conditions must be met for the True branch to execute.
ORAny one condition being met is sufficient for the True branch to execute.

Type & Comparison Options

TypeAvailable Comparisons
Stringexists, 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
Numberexists, 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 & Timeexists, 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
Booleanexists, does not exist, is empty, is not empty, is true, is false, is equal to, is not equal to
Arrayexists, 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
Objectexists, does not exist, is empty, is not empty

Conditional Branching

The If/Else node produces two output branches on the canvas:
BranchDescription
TrueConnects to steps that run when the condition(s) are met.
FalseConnects 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.