If–Then Choices
Coding & Systems · selection · write a program that chooses with IF–THEN

Kavi Teaches the Robot to Choose
Kavi was making a little game. "I want my robot to choose for itself," said Kavi. So Kavi wrote a special line: IF the coin is touched, THEN add 1 to the score, ELSE do nothing. Now the robot checks one thing — is the coin touched? If the answer is yes, it takes the THEN road and scores. If no, it takes the ELSE road and waits. "A program that can pick between two roads is using selection," Kavi hooted. "That is how programs make choices!"
What your child will learn
A peek inside
Try this at home: When a program picks between two roads, that is called ____.
Ready to play and learn?
Start the free interactive lesson, or print the handout for screen-free play.
Part of Computing · Stage 4 · S4 on KAVI Academy — a secular, whole-child learning platform for ages 5–12.
