Statement - Repeat a list of statements.
WHILE <BOOL expression> DO
The statements between "DO" and "END_WHILE" are executed while the boolean expression is TRUE. The condition is evaluated before the statements are executed. If the condition is FALSE when WHILE is first reached, statements are never executed.
Warning: Loop instructions may lead to infinite loops that block the target cycle. Never test the state of an input in the condition as the input will not be refreshed before the next cycle.
iPos := 0;
WHILE iPos < iMax DO
MyArray[iPos] := 0;
iNbCleared := iNbCleared + 1;
IF REPEAT FOR CASE EXIT