The Break Flow Control: Stopping Your Loop Early

Modified on Wed, 29 Jan, 2025 at 11:24 PM

Sometimes, you might want to stop your loop before iterating through all items. This is where the Break flow control comes in handy.


What is Break?

Break acts as an "emergency exit" for your loops, allowing you to stop loop execution and move on to the next part of your workflow when certain conditions are met. This creates more efficient automation by preventing unnecessary processing.

Common use cases include

  • Finding what you need early - like spotting the first non-compliant resource in a large inventory check
  • Reaching processing limits - such as when accumulated costs hit a budget threshold

Break is most effective when paired with an IF step, creating decision points that can trigger the loop exit. 


This combination of Break and IF lets your workflows make smart decisions about when to stop processing, saving time and resources by avoiding unnecessary iterations once your objective is achieved.

 

How to Add Break

  1. Inside the scope of a Loop, Press the (+) button

  2. Select Break from the Flow Control section

 

? Note
You can only add Break within a Loop step



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article