A basic multiplexer circuit example where the top logic source is Input 1, the bottom logic source is input 0, and the middle logic source decides which input is passed to the output. The red LED lights up when it's passing a 0 and the green LED lights up when its passing a 1.
A I0 I1 Q
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1