Change variable every other loop

// start with i3 = 1
i3 = 1;
// When you want to flip value
i3 = 9 - i3;