public repeating_task() { // Lets say Variable is currently at 3 if(variable > 3) variable = 0; switch(variable++)// It'll come here and then it'll be 3+1 so then it'll be 4 { case 0: // something... skips case 1: // something... skips case 2: // something... skips case 3: // something... skips case 4: // It is 4 because it won't be set back to 0 because it's being added right after the check to see if its greater than 3 } }