In this lesson, we are going to explore some of the coding concepts for the Electric Vehicle project you are going to code next. Take a look at the blocks below, they will be used to code your project in the next section.
Conditional Statement (If/Then)
Sometimes we need our computer to do something but only when we want it to based on other information. For that, we can use a block called a conditional or an If-then block. It works kind of like this: If it’s raining outside, then take an umbrella. In an If-then block, if a condition is met, then something defined will happen!