Pascal - loop with condition at the end until is false: repeat until

condition testing is done at the end of the loop. after each iteration the condition is tested, if it is was true. if the specified condition is false, then the loop will continue run, otherwise it will be completed.

repeat until

Description

repeat statements until condition;
Used keywords: repeat until

Input

Note: here usable statements:
break statement continue statement
compatible programing languages:
Free Pascal | Object Pascal

Examples

Pascal

i:=10;
repeat dec(i) until ( i = 0);
repeat
  inc(i);
  if i=3 then
    break;
until (i=10);

Pascal

Other pieces of example codes:
repeat dec(i) until not i > 0;
repeat dec(i) until not i > 0;
loop with condition at the end until is false in another programming language:
Differences to:
Languages: en hu cz sk