# 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zerowork.io/using-zerowork/using-building-blocks/break-repeat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
