The Freya Programming Language

While statements

See also

The while statement execute its nested statement zero or more times, according to the evaluation of its boolean condition.

Syntax

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;

See also

The Freya Programming Language
Statements
repeat statements
loop statements
for statements