Skip to content
PlayOwl

Coding · Grade 6

Conditions and Boolean Logic

Learners use comparisons to ask True/False questions, trace if, elif and else to see which single branch runs, and combine conditions with and, or and not using truth tables. A reading-club badge program shows why the order of an elif chain matters and how boundary values reveal decision bugs.

  • 4 lessons
  • About 80 minutes
  • Check what you learned: 8 questions
  • Ways to answer: fill in the blanks, choose an answer, put code in order, trace code and sort into groups
Try it now (no account) One of the five free starter courses Open in PlayOwl

What learners will discover

  • Evaluate comparisons to True or False and tell == (compare) from = (store).
  • Trace if, elif and else statements and predict which branch runs, including at boundary values.
  • Combine conditions with and, or and not, and evaluate them using a truth table.
  • Order the branches of an elif chain correctly and choose boundary tests to find decision bugs.

Lessons

  1. Comparisons are questions with True or False answers 6 steps3 practiceabout 18 min
  2. if, elif and else 6 steps4 practiceabout 20 min
  3. and, or, not 6 steps4 practiceabout 20 min
  4. Order matters: elif chains and boundaries 6 steps3 practiceabout 18 min
  5. Check what you learned 8 questions at the end

Keep exploring

Games to practice with

More 6th grade coding

Guide for grown-ups