Orchestration
...
Loops
Nesting, Branching, and Conditions
5 min
the foreach loop functionality has been enhanced to provide with nesting capabilities, with multi branching that enables on success/error paths, and if/else conditions review how to set up the loops docid\ lnimadntfwxpytirwalpz native action before you nest, branch, and create conditions within loops nesting as an orchestrator working with loops, you can add loops into another loop you can only add four levels of nested loops (for a total of five) a warning dialog shows when you have reached the limit and cannot create more nested loops inside the loops, you can perform normal action functions, such as add, edit, and delete actions, inputs, and promote outputs configure on success, on failure, and on complete action flow logic view and understand execution results from the branches of a loop and nested loops support if/else conditions branching as an orchestrator working with loops you can create one or more branches of actions and logic within a loop perform normal action functions, such as add, edit, and delete actions, inputs, and promote outputs configure on success, on failure, and on complete action flow logic view and understand execution results from the branches of a loop and nested loops conditions just like actions, you can create action flows and conditions docid ordps87mw 1v3runycc for foreach loops currently, in foreach loops, all conditions are on complete after adding an action, the action flow line displays click the line to enable the condition functionality the condition icon displays click to open the flow window click add condition to configure conditions for the action the edit condition window opens click create your first condition and the playbook property drawer opens, where you can select the desired property from the current action and preceding actions note the comparison operators differ based on the property selected configure the condition conditions are visible in the flow window use case see the nesting, branching, and conditions loops use case docid 1uj9 f6dpn s 002ifvbj for example