For the complete documentation index, see llms.txt. This page is also available as Markdown.

Exit loop

The Exit Loop action node can be placed inside a While or Foreach loop to end its execution.

Exit Loop ends only the nearest While or Foreach. If that loop sits inside another loop, the outer loop continues with its next iteration.

Example

In this example, a list of orders is iterated. When an Order with the status New is found, it is set as selected and the loop ends. If there are any action nodes after the loop, these will be run next.

Last updated

Was this helpful?