> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/using-zerowork/using-building-blocks/break-repeat.md).

# Break Repeat

This action aborts the current loop. This is used if, for example, the loop should be exited once certain conditions are met.

#### **Example**: Break loop if there are no more profile search results&#x20;

Imagine that you don't know how many pages with search results there are on some page. Once there are no results, the website shows some text like "There are no search results anymore". You can use [Check Web Element](/using-zerowork/using-building-blocks/check-web-element.md) to check if such text is shown. Then you can set up a condition that if that condition is met, then your TaskBot should stop the loop.&#x20;

<figure><img src="/files/a1DQ6CzXaNgIdg50uiR3" alt=""><figcaption></figcaption></figure>

Another example is described here: Break loop if status request is unsuccessful [APIs: Send HTTP Request](/using-zerowork/using-building-blocks/apis-send-http-request.md#save-status-response).&#x20;

See a **video tutorial** where Break Repeat is used to exit the loop once a daily DM limit is reached: [Using Variables](/using-zerowork/using-variables.md#example-use-variable-to-limit-number-of-dms-sent-per-run).
