Can't get my board to read inputs from a switch and output on a 7-segment LCD.

The code is clumsy but may work if you use the and operator ( && ) when testing the inputs