Try removing this line
and this line
and I think the program will do what you want.
To see why, try enabling View>>Preferences>>Highlight Program Execution, and run your program by clicking the Start button in the Program Debug after you compile and download, leaving your robot connected to the computer while the program is running. This will show you how your program is running and you can get a sense of which lines are executed when various combinations of your sensors are activated.