The while statement execute its nested statement zero or more times, according to the evaluation of its boolean condition.
This is the syntax of the while statement:
while condition do statement
Iteration can be aborted by executing a Break statement inside the loop's body:
while SomeCondition do begin DoSomething; if AnotherCondition then Break; DoSomethingMore; end;
The Freya Programming Language
Statements
repeat statements
loop statements
for statements