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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.