Skip to content
PlayOwl

Coding · Grade 4

Conditions and Branching

Fourth graders use IF, ELSE IF and ELSE to choose between many paths, learn that the first true condition wins (so order matters), trace nested decisions, and test every branch, including the boundaries between branches.

  • 4 lessons
  • About 85 minutes
  • Branching check: 8 questions
  • Ways to answer: choose an answer, trace code, highlight a text, match pairs, type a number and sort into groups
Try it now (no account) One of the five free starter courses Open in PlayOwl

What learners will discover

  • Use IF, ELSE IF and ELSE to choose between more than two paths, checking conditions from the top.
  • Put conditions in the right order so that ranges work, because the first true condition wins.
  • Trace nested decisions: an IF inside another IF.
  • Test every branch of a program, including the boundaries between branches.

Lessons

  1. More than two paths 4 steps2 practiceabout 16 min
  2. Order matters 4 steps2 practiceabout 16 min
  3. Decisions inside decisions 4 steps2 practiceabout 16 min
  4. Test every branch 5 steps3 practiceabout 15 min
  5. Branching check 8 questions at the end

Keep exploring

Games to practice with

More 4th grade coding

Guide for grown-ups