Rather Read the Key Concept? Click Here
KEY CONCEPT: CODE DECISION MAKING
In this program, your code will 'make a decision' about whether or not to turn on the LED brake light. The decision is based on whether or not a button is pressed. In code, you express decisions with 'if' statements, a piece of code that runs only under certain conditions. You surely make hundreds of decisions each day, and each of those could be simplified down into an 'if' statement!
The rest of the lessons in this hour will be based on the different ways you can use 'if' statements to make multiple things happen, or how you can combine 'if' statements to work under many different conditions.