Changing modes with one touch button; on-mode1-mode2-mode3-off-on-mode1, etc.

The reason I am asking for a loop within a loop is that when I touch the touch button, I want the LEDs to go ON and OFF with an interval (like a loop) until I touch the button again and the LEDs go ON and OFF with a different interval. I will check out the like you gave me. Thank you.