Why did it stop when push both A & D?

Hello, everyone. I have a question about “if…else if…”

When the two conditions are true (pressing A & D at the same time), why did it stop other than run the statement in the first if (printing “rotate left”)?

I thought since the first condition is true even if I pressed both A & D, the A is pressed, and the statement should be evaluated.

Thank you so much

First, I haven’t done this course, so I am going by your post. It should execute the first if. Can you show your code? Perhaps there is something in your code that causes this

Privacy & Terms