Join a lesson Start a lesson
CodingMain

Decisions with if

Guess what prints for each score. A free lesson starter for Lesson Screen: change anything, then teach it live with your class.

Try it first needs no account.

Decisions with if on the Lesson Screen board

How to run it in class

10 min
  1. 1Guess each oneWhat prints for 45, 70 and 90?
  2. 2Run to checkChange the score and run each one.
  3. 3Add a levelAdd a new message for a perfect score.

Good for

If statementsBeginners

Works well with

Subject toolsEvery student's own board

Why it works

Guessing what prints for each score helps students understand how if and else choose a path. Adding a new level makes them write their own condition.

Ideas to adapt it

  • Add a message for scores below 0.
  • Use and or or in a condition.
  • Write a grade calculator.

Questions

How long does it take?

About 10 minutes. It stays saved in your lesson, so you can come back to it next time.

Can I use it with one student?

Yes. Let them pick scores to try to break it.

Do students need an account?

No. Go live and share the link or the code. Students join from any device with nothing to install, and you can give each of them their own copy.

Is this starter free?

Yes. Open it, change anything and teach with it on the free plan, which has every feature and live lessons with up to 5 students. Try it first needs no account.

More coding starters

See all