Class 3 · CBSE AI · Strand C — Algorithms are Recipes

If-then decisions — how algorithms make choices

Algorithms make choices with 'if this, then that'. The conditional, explained for Class 3 children.

What this concept actually says

  • A decision step is one line that checks something first, then sends the follower down one of two paths
  • Both paths must be written — a path you did not write is a path the follower does not have
  • The check itself must have one answer everybody reads the same way

An analogy your child will recognise

Monsoon season in India

Every monsoon morning, you make a decision: if there are dark clouds, carry an umbrella; otherwise, leave it at home. That 'if-then-otherwise' thinking is exactly how computers make decisions — they check a condition and then choose what to do next.

A toll booth on a highway

At a toll booth, the rule is: if the driver has a FASTag, the barrier lifts automatically; otherwise, they stop and pay cash. The barrier follows an if-then rule all day long without anyone having to think about it each time.

Common misconceptions to watch for

  • If-then instructions are only needed for complicated programs — simple algorithms don't need decisions
  • The 'else' part is optional and the algorithm will still work fine without it

Key facts in one breath

  • A decision line reads: if this is true, do that; if it is not, do this other thing
  • One decision step covers many days, so one small card can run all year
  • A follower with only one path written waits at the door when the other case appears
  • 'Is there water in the pit' is a usable check; 'is the ground nice' is not, because two people answer it differently

How Dhee Learning teaches this — the 3-stage question loop

Every Dhee Learning session for this concept follows three stages. We share the questions Dhee actually asks, so you can hear what a session sounds like.

Stage 1 — Surface

The monitor's card says: if the ground is wet, games in the hall. Today is dry. What is missing from the card, and how would you write it?

Rote answer

"Child says the card needs more lines or a second card, without naming what the dry morning is missing."

Understood

"Child says the check is written but only the wet path is, so the dry path must be added — 'otherwise, games on the ground' — and then one card answers both mornings."

Stage 2 — Reasoning

Two cards, one for wet and one for dry — or one card with a check inside it. Which way should the monitor's card be built, and why?

Follow-up Dhee may use: On a dry morning, what exactly goes wrong for the child at the door with the two-card way?

Stage 3 — Application

At home time the gate helper must decide about umbrellas. Write the check for his card, then write both of its paths.

Misconception Dhee watches for: Child writes only the rain path and leaves the dry home time unwritten, or writes a check like 'if the sky looks scary' that two helpers would answer differently.

Related concepts

Want your child to actually understand this?

Dhee turns this concept into a short spoken lesson — teaching, listening, and probing — so your child builds the idea themselves.

Frequently asked questions

What is if this then that — explained for kids? +

Algorithms make choices with 'if this, then that'. The conditional, explained for Class 3 children.

What's the most common mistake children make about this concept? +

If-then instructions are only needed for complicated programs — simple algorithms don't need decisions

How does Dhee Learning teach this in a Class 3 session? +

Dhee opens with a question — for example: "The monitor's card says: if the ground is wet, games in the hall. Today is dry. What is missing from the card, and how would you write it?" — listens to your child's answer, then probes the reasoning behind it. The session ends when the child can apply the idea to a brand-new situation, not just recall it.