of     1   

3lex33
#63470454Sunday, February 26, 2012 9:32 AM GMT

Is it possible to make a loop step/edit in loop variable? Like: a)(in other language) for (var i, i<=10, i+=2) do .... b)for i = 1, 10 do ... i = i + 1 end Basicly, how to make a loop advance on more then one each time?
3lex33
#63470555Sunday, February 26, 2012 9:39 AM GMT

Ok, when i try doing for i = 1, 20 do i = i + math.random(3)-1 end Engine seems to generate to "i" variables, one is a loop variable, second is a normal variable. Any other ways to make loops with step, which is more then one?

    of     1