# LOOP

#### Syntax <a href="#syntax.27" id="syntax.27"></a>

**LOOP**(*condition; expression*)

* *condition* - the condition which is evaluated before each evaluation of the expression. If the condition is *false*, the further processing of the LOOP function stops - ***Value type**: boolean*
* *expression* - any combination of functions or operations, which is evaluated in every loop execution cycle - ***Value type**: any*

#### Remarks <a href="#remarks.23" id="remarks.23"></a>

* The expression should ensure that the condition is finally fulfilled. This could be done e.g. by increasing a counter widget in every loop cycle, see example below.
* To avoid endless loop cycles, the maximum of cycles is 10.000 per LOOP function. It is possible to embed one LOOP function into another, to realize more than 10.000 cycles. But this must be done carefully, because it could result in very long response times.

#### Example <a href="#example.3" id="example.3"></a>

![](/files/ZO0oAOYCsOaIH1g7efvo)


---

# 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.nedyx.com/version-1.66/nedyx/clearlines-functions/logical-functions/loop.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.
