Until calculation

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Constructs NO NO YES All

Syntax

Until calculation

Description

This command terminates a Repeat-Until conditional loop specifying a calculation as the condition. The calculation is evaluated at the end of the loop that continues if the derived value is zero.

Example

Calculate lCount as 1
Repeat ## Repeat loop
  Calculate lCount as lCount+1
Until lCount>=3
OK message {Count=[lCount]} ## prints 'Count=3'