Do ... While (ESDL Editor)
The do...while loop has the following general form:
do
{
} while (expressionLog);
The loopStatement block is executed. After that, the loop condition expressionLog (must be of type logical) is evaluated. If it is true, the loopStatement block is executed again, otherwise, the loop exits.
This behavior is different from the while loop where the loop condition is evaluated before the loop statement is executed.
In order to avoid infinite loops, the maximal number of loop iterations can be limited to a fixed number in the project properties, Experiment Code node, of the associated project (or default project).
See also