Choose a country
Grade 4Computer scienceLogic and algorithms

The if-then rule

Lesson goal: Tell true statements from false ones, judge statements joined with “and” and “or”, and build “if…, then…” rules.
← Logic and algorithms

About this lesson

A statement is a sentence we can call true or false: “Snow is white” is true; “Cats fly” is false. Questions and commands are not statements. We can join statements. With “and”, both parts must be true: “Today is Saturday and it is sunny.” With “or”, the whole is true if at least one part is true. An “if…, then…” rule says what to do depending on a condition: “If it is raining, then I take an umbrella.” Such rules are used a lot in algorithms and programs.

Lesson goal: Tell true statements from false ones, judge statements joined with “and” and “or”, and build “if…, then…” rules.

What the book shows

In computer science the child first learns to think through unplugged games: recognising information, ordering steps and learning safety rules.

Textbook link:

This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.

The lesson step by step

  1. 1

    Warm-up5 min

    True-or-false game.

  2. 2

    New topic10 min

    What is a statement?

  3. 3

    Practice10 min

    “And”, “or”.

  4. 4

    Game10 min

    If-then cards.

  5. 5

    Wrap-up5 min

    Our rules.

Let’s understand

For the student Simple language

ABA and BA or B
truetruetruetrue
truefalsefalsetrue
falsetruefalsetrue
falsefalsefalsefalse
If it is raining, then I take an umbrella ☔

Going deeper

Scientific language: for older students, parents and teachers.

Traffic lights, lifts and washing machines all run programs with hundreds of if-then rules inside.

Play and check

True or false?

How to write it down

  1. Write 2 statements with “and” and “or” and mark them true or false.
  2. Write 3 “if…, then…” rules for school.

How the classwork looks in the notebook

15 November1Classwork2A and B · A or B · if A, then B3
Writing order: 1 Date 2 Heading 3 Line 3: A and B · A or B · if A, then B
Sample: the date and heading follow this country’s notebook rules.

Open notebook

Watch out: common mistakes

Calling a question a statement. “What time is it?” can’t be true or false.
Requiring both parts of “or” to be true. One true part is enough.

Where it helps in life

  • Branching in algorithms
  • Logical reasoning

At home

Core

  1. Find and write 5 “if…, then…” rules at home.

Extra ⭐

  1. Tell your family 4 joined statements and let them guess true or false.

How to do it

  1. Do the task with a grown-up.
  2. Explain in words what you noticed.
Answers for parents

For example: If the kettle boils, then we turn off the stove. If it’s cold, then we wear a jacket. If the phone rings, then we answer.

Step-by-step homework solution — Show the solution (try it yourself first)
  1. Think

    1. “Today is Sunday or I am at school”: on a school day at school this is true, because one part is true.

How the homework looks in the notebook

15 November1Homework2If-then rules3
Writing order: 1 Date 2 Heading 3 Line 3: If-then rules
Sample: the date and heading follow this country’s notebook rules.

Check yourself