While statementΒΆ

Use while to implement a conditional loop.

syntax:

(while (conditional_expression)
        code_block_1
)

code_block_1 is continually executed until conditional expression evaluates to be FALSE (zero).

See also: If statements, For loop, Do loop, Break statement.