while


loop

while

while(condition) { BLOCK }

        As long as condition is true BLOCK is executed.
Example: x=1;while(x<5){$x;x++;}
prints: 1 2 3 4