decrementing a for loop?

Monkey Forums/Monkey Beginners/decrementing a for loop?

Xyle(Posted 2015) [#1]
Of course this works...

For Local i:Int = 0 to 12
     Print "I = " + i
End For


but this doesn't?
For Local i:Int = 12 to 0
     Print "I = " + i
End For


Any tips on this?
Thanks!


Playniax(Posted 2015) [#2]
For Local i:Int = 12 To 0 Step -1



Xyle(Posted 2015) [#3]
Man you are the best!

Thank you!!!