Page 1 of 1

Until command

Posted: Fri Apr 07, 2017 6:33 am
by SITL
Dear Francesco,

Can you please tell me the correct use of Until command ?
Sorry for very basic question.

Regards
SITL

Re: Until command

Posted: Fri Apr 07, 2017 11:59 am
by FrancescoT
Dear SITL,

this is really simple;

Code: Select all

Set Variable Count to 0
 
repeat
 MessageBox: Repeat test, Count = $Count$
 Count = $Count$ + 1
until Variable Count Greater Than 5
 
MessageBox: Repeat test, Completed


The Until command is used to end a loop after performing an evaluation. The loop ended using this command must have been started using the Repeat command. If the evaluation is unsuccessful, one more iteration of the loop will be executed. Upon the ending of each iteration, the loop condition will be re-evaluated, and the loop re-executed until the conditional succeeds.


Hope this helps you.

Regards