One of the most common ways to give a computer conditions for making a decision is by using something called if statements. Something will happen only IF the condition is met.
You probably use if statements all the time!
If I’m tired then I go to sleep.
If I’m thirsty, then I drink something.
Can you think of any other examples from your daily life that follow the same if___ then___ formula?