MPL Documentation

WHILE

iterates a block of code while the condition is true.
while (condition) do 
   (block of statements);
while not EndOfFile(FileHandle) do begin
   BlockRead(FileHandle, Buffer, SizeOf(Buffer), NumberRead);
   {... to be implemented ...}
end;
Source: Reserved Words
See Also:
for, repeat, break, continue, exit.