Lesson 2 of 8 · 7 min
Conditionals and nested logic
Conditionals let a program decide: if a condition is true, do one thing, else do another. Conditions can combine with AND, OR, NOT, and can be nested (an if inside an if) for more complex decisions.
if (age >= 13 AND member) …
Decisions with boolean logic
Let’s try it! ✍️
Question 1 of