The while keyword is a looping construct whose general form is:

while (expression) {

Where expression is usually of the form: variable compare op value, and the loop continues to execute instructions until expression evaluates to false (i.e., 0). 'instructions' can be one or more incstruction, which can be something like setting a variable, doing calculations, calling a method, or another loop.


while( %val )
    echo( %val-- );


See also Edit