Using Switch in a If if condition

I cannot understand what your code is supposed to do. Are you trying to cycle to the next step of the eight ones every time you release the pressed pin 4 button?