SimpleScript

Code Examples - While Loop Example

This code will loop 50 times and output a string counting up.

v.number=1

while v.number<=50
    if v.number==50
        s.echo("v.number.")
    else
        s.echo("v.number, ")
    end
    v.number+1;
end

Output