Applescript builds a list of values (or an iterator/generator) and
sets i to the next value at the top of the loop; it doesn't look at
the current value of i to determine what the next value of i should
be. So you can do anything you want to i inside the loop and it
won't affect the loop control logic: