← Back to course
Code Crew G1 / Week 07 / Monday
1/6
Week 07 Β· If, Then

Monday

Check first, then act
// Check first, then act
⏱ about 15 min
Rocket the inventor holding his engineering tablet

A new power: if!

Nova runs lines exactly.

Sometimes that means... bonk!

Today Nova learns to check first.

WARM-UP: PATTERN EYES
  • Remember pattern week.
  • Tap the answer.
the bead string
?
the bead program
?
A four line program with three move right lines and stop

The bonk problem

The old program never looks.

A wall pops up... bonk!

The lines need a check.

A five line program with an if wall line and a then turn right line

The if-line checks first

if wall, then turn right.

The if asks. The then acts.

Check first, then act!

Raven the explorer with her wrist computer

What do you notice?

Wall there? The then runs.

No wall? Nova skips it.

One rule, two endings!

Nova the drone-bird hovering with glowing eyes

Nova checks the wall

Nova still runs lines exactly.

Now one line says: look!

No more surprise bonks.

move right
if wall,
then turn right
move right
stop
WALL OR NO WALL?
  • Think about the check.
  • Tap what Nova does.
a wall
?
an open road
?
the if-then pair
?

You can read an if!

Now build one yourself.

Five lines, one check.

BUILD THE CHECK
  • Two moves come first.
  • Then the check, then the turn.
1line 1
2line 2
3line 3
4line 4
5line 5
TRICKY ONE!
  • Read the program carefully.
  • Tap the answer.
the no-check program
?
a wall
?

Word Spot: may, of

Here are new sight words.

Look at each word. Say it. Spell it.

May: M-A-Y.

Of: O-F.

FIND THE WORD
  • Listen to the word.
  • Tap it.
Listen and find
?
Listen and find
?
Listen and find
?
Listen and find
?
FILL THE GAP
  • Listen to the sentence.
  • Tap the missing word.
Which word fits?
?
Which word fits?
?

You checked first!

The if asks a question.

The then does the action.

Check first, then act!