Using Switch in a If if condition

I repeat, what does the posted code do? How is that different from what you want?

I am awaiting a schematic. How to make a schematic that you can post.

Where is buttonState read? Which button?

Post the whole code.