Give

If this, then that

Use if blocks so a program reacts differently to different situations.

Planned. This module is part of the plan and is not written yet.

COCO-BLK-CND-0101Level3–6

Why it matters

A farmer decides each morning: if it rained, don't water the seedlings, else water them. Programs make choices the same way.

Draft outline · in review
For
Level 3–6 · Primary 3 to Primary 6
Inside
4 lessons and a test · about 45 minutes
Topic
Conditions · foundation, 1 of 4
Plate CO-BLK-CND-01: planned.

Inside the module.

4 lessons in order, about 45 minutes in all, then a short test. Learners go at their own pace; the minutes are a guide, not a timetable.

Draft outline · in review

  1. Lesson 1: Making a choice

    An if block runs its inside only when its condition is true.

    Explain10 min, from minute 0

  2. Lesson 2: If it is raining

    Make a character take an umbrella only when it rains.

    Worked example10 min, from minute 10

  3. Lesson 3: Adding else

    Handle the other case with else, so something sensible always happens.

    Practice15 min, from minute 20

  4. Lesson 4: A game that reacts

    Make a small game where touching a mango scores a point and touching a stone loses one.

    Project10 min, from minute 35

  5. End-of-module test

    Use if and if-else blocks so programs react correctly to different situations.

    Mastered at 85% or more. Retake it until you pass; nothing is lost, and each try gives feedback.

    Already know it? A Challenge Test (planned) clears the whole module: 90% overall, no objective below 75%.

    Last stageafter about 45 min

Practicalities

Draft outline · in review
  • Built to run offline

    Planned to run on the Lantern's own computer, with no internet needed.

  • Languages

    Planned first in English; every module aims to reach all of the Lantern's languages.

Try a question.

One question from the module, as a learner would meet it. Have a go, then open the worked solution a step at a time.

Draft outline · in review

if it is raining [take umbrella] else [wear hat]. Today it is sunny. What does the character do?

Your answer

Particulars

Where it sits

Coding · Block coding · Conditions

What a learner can do after it

  1. Use an if block to choose what happens.
  2. Add an else to handle the other case.

Unlocks

Nothing requires this module yet.

Suggested before

Level

Level 3–6 · Primary 3 to Primary 6

Show levels in

Level mappings are approximate. A qualified teacher or lecturer in each country must check them before they appear in the app.

Difficulty for its level

1 of 4 · Foundation

Time

About 45 minutes

Alignments

None drafted yet.

Alignment in review until a qualified teacher or lecturer checks it. No exam body, university or vendor endorses us; learners still sit the real exam.

Challenge Test

Planned: a Challenge Test to prove you know it and skip it. Pass at 90% overall, with no objective below 75%.

The route here.

Everything this module builds on, drawn as a route from its foundations. Solid lanes must be mastered first, or cleared by a Challenge Test; dashed lanes are suggestions that never lock anything.

  1. CO-BLK-SEQ-01Instructions in orderCoding · Primary 1 to Primary 4 (Level 1–4) · Planned
  2. CO-BLK-CND-01If this, then thatCoding · Primary 3 to Primary 6 (Level 3–6) · Planned · the destination Needs Instructions in order (required).
2 stops across Coding. None has a sample lesson in the demo yet; all 2 are planned and not yet written.

Help light the room where this is learned.

Every route on this map starts in a classroom with 24 stations, a tutor that works offline and a facilitator upstairs. Four are planned and waiting for light.