_________________________________________________________________________________________________________
Repeat statement
___________________________________________________________________
This will execute the statements between repeat and until up to the moment when Expression evaluates to True. Since the expression is evaluated after the execution of the statements, they are executed at least once. Be aware of the fact that the boolean expression Expression will be short-cut evaluated. (Meaning that the evaluation will be stopped at the point where the outcome is known with certainty) The following are valid repeat statements
repeat WriteLn ('I =',i); I := I+2; until I>100; repeat X := X/2 until x<10e-3 |