HelioLearnSkills for every stage

GRADE 4 · COMPUTATIONAL THINKING · ABOUT 40 MINUTES

Trace a conditional choice

Choose an action from the current condition.

Understand the idea

An if/else instruction selects one branch when it runs. Check the current situation each time.

WORKED EXAMPLE

At (1,0), a wall occupies (2,0). If right is clear move Right; else move Down. The robot reaches (1,1).

Watch it step by step

Step 1 of 4
012340123#RStartPosition (0,0)One square per arrow.Down increases therow.

Start

Begin at (0,0); wall at (2,0).

Choose Play to advance steps automatically.

Read or choose any step
  1. Start

    Begin at (0,0); wall at (2,0).

  2. Approach

    Move Right to (1,0).

  3. Check

    The next square right contains the wall.

  4. Else

    Move Down to (1,1).

TRY BEFORE CHECKING

Exercises with feedback

Enable JavaScript for feedback, or use the printed exercises.

MAKE SOMETHING YOU CAN EXPLAIN

Your practical challenge

Draw the two branches and trace one clear-square case and one blocked case.

Review your evidence

These ticks are your self-review. They do not automatically assess project quality. Ask an adult or partner to review what you can show.

Use the skill in a new situation

Describe what happens if Down is also blocked.

Choose a different space for another learner on this browser.

Notes and checks use this browser, separate from school sign-in.

Each space keeps each grade separate. These spaces are not private accounts; use separate browser profiles for privacy on a shared device. About your practice data

Next: Check a confident AI answer →All six experiences