if…else

This Code Block explores the basic flow control structure of if…else. The state of a button is used to control the color of an RGB LED.

The logic of using if…else is generally outlined.