Lesson 3 of 9 · 6 min

Boolean logic and complex conditions

Boolean values are true/false. Combine conditions with AND (both true), OR (at least one), NOT (flip). Complex conditions like "(age >= 13 AND member) OR admin" let programs handle real-world rules precisely.

(a >= 13 AND member) OR admin

Combine true/false with AND/OR/NOT

Let’s try it! ✍️

Question 1 of

🎉

Great job!

You finished this lesson.

Next lesson → All lessons