LOOP

Executes an expression until a condition is met.

Syntax

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

  • 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