MPL Documentation

REPEAT

iterates a block of code until the condition is false. The repeat...until loop is similar to C's do...while loop, except the condition must be false, whereas C it must be true.
repeat
   (block of statements);
until (condition);
repeat
   BlockRead(FileHandle, Buffer, SizeOf(Buffer), NumberRead);
   {... to be implemented ...}
until EndOfFile(FileHandle);
Source: Reserved Words
See Also:
for, while, break, continue, exit.