Langkau ke kandungan

    If Island

    Conditionals Umur 7–9

    Read if–else code that compares numbers, checks for odd and even, and combines two conditions.

    • Umur 7–9
    • 3 misi
    • Permulaan → Semakin mahir → Cabaran

    Year 3 conditionals look like real code: comparing numbers with > and <, checking whether a number is odd or even, and combining two conditions with “and”.

    Apa yang akan dipelajari anak anda

    • Evaluate conditions that compare numbers
    • Decide whether the THEN or ELSE part runs
    • Understand conditions joined with “and”

    True or false?

    Every condition is either true or false. “number > 5” is true when the number is 6 or more — but false when it is exactly 5. If Island includes these edge cases on purpose, because that is where real bugs hide.

    Contoh soalan

    Berikut ialah beberapa soalan seperti dalam misi pertama. Bolehkah anda menjawabnya?

    1. 1. The number is 10. What does the robot do?

      • say “Hooray!”
      • say “Try again!”
      Tunjuk jawapan

      Jawapan: say “Hooray!”. “number > 9” is true, so the robot runs the “then” part: say “Hooray!”.

    2. 2. The playground is quiet 🤫. What does the robot do?

      • Line up 🚸
      • Keep playing ⚽
      Tunjuk jawapan

      Jawapan: Keep playing ⚽. “the bell rings” is false, so the robot runs the “else” part: Keep playing ⚽.

    3. 3. The soil is dry 🏜️. What does the robot do?

      • Let it grow 🌱
      • Water it 💧
      Tunjuk jawapan

      Jawapan: Water it 💧. “the plant is dry” is true, so the robot runs the “then” part: Water it 💧.

    Tip untuk orang dewasa

    • Play “true or false?” with number statements like “7 is bigger than 9”.
    • Invent game rules that use “and”: you score if you hop and clap at the same time.