I have a for loop and would like to increment a variable for (let's say) 2 instead of one (++).
How can I do that?

I have tried for instance x + 2 instead of x++ but when I try it in IE an error saying that a script is making IE to run slowly and then nothing happens.
So how to do this?