Every program we’ve seen so far has only had one possible path of execution — they all execute line by line, from top to bottom. And every time you run one of those programs, it gives you the same exact result. But it’s the twenty-first century, and we like options!
In this lesson, we will explore how programs make decisions by evaluating conditions and introduce logic into our code!
We’ll be covering the following concepts:
else if, and
- Relational operators
- Logical operators
So… if you’ve already learned these concepts in another language, go to the next lesson — else, prepare yourself and let’s get started!
Click Next to continue.