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 Loop node repeats a set of workflow steps based on a condition or until an array is fully processed. It produces two output branches on the canvas: Loop (steps that execute on each iteration) and Done (steps that run after the loop completes). The final step in the loop chain should connect back to the loop node’s input to create the iteration cycle.

Configuration

Loop Condition

FieldRequiredDescription
Condition TypeYesDetermines how the loop iterates. See options below.
Continue LoopYesControls when the loop continues. Options are True (continue looping) and False (stop immediately).

Condition Types

TypeDescription
Array IterationIterates over each item in an array.
Boolean ConditionsContinues looping while a boolean condition evaluates to true.
Iteration CountLoops a fixed number of times.
ExpressionContinues looping while a custom expression evaluates to true.
Simple True/FalseA basic true/false value for testing loop behavior.

Safety Settings

FieldDescription
Max IterationsThe maximum number of times the loop can execute. Default is 10. Acts as a safety limit to prevent infinite loops.

Loop Structure

The Loop node produces two output branches on the canvas:
BranchDescription
LoopConnects to steps that execute on each iteration.
DoneConnects to steps that run after the loop completes.

Results

The Results tab shows the loop execution details after the node runs.
The final step in the loop chain must connect back to the loop node’s input to create the iteration cycle. The loop continues while the condition evaluates to true.