Board Thread:Questions and Answers/@comment-14600979-20140814170047/@comment-5334617-20140815050031

Another potential problem I see is that if you start the subroutine with  nonzero, and with   and , what will happen is the condition on the first   will be true, so its   branch will get executed... then, when the program gets to the third  , its condition will be true also. I don't know the logic of your code, so perhaps you intend for this to happen, but under these conditions,  will go straight from 0 to 2 in one.

If you want  not to skip 1, you should put the third and fourth  s before the first and second ones.