> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.52-preview/clearlines-functions/logical-functions/loop.md).

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