Obeys the lines of Visual Logic in the sub-block and then tests the condition and if this is UNSUCCESSFUL then repeats. Continues like this until the test is successful.


Until Condition
Do Visual Logic Sub-Block


Significantly different from WHILE in that the sub-block is always obeyed at least once.

Please note that you will need to use a looping variable for this command and to increment it within the UNTIL loop, otherwise you will have an infinite loop. In the following example, lclRow is the looping variable and it is incremented after the last and only command within the UNTIL Loop.

Simul8 UNTIL infinite loop