Onetastic Macro Documentation >
>
while
while Statement
Description
Executes a set of as long as the given boolean expression evaluates true. You can break out of a while loop using a break statement or skip to the next iteration using a continue statement.
Syntax
while (boolean-expression)
Statements...
Examples
$sum = 0
$i = 1
while ($i < 5)
$sum += $i
++$i
See Also
|