Million Whys Press logo
Million Whys PressToronto
← Book 15 videos

Book 15, Question 128

Why Do Robot Instructions Use If-Then Rules?

Robot instructions use if then rules so the robot can choose what to do when something happens.

Robot instructions use if-then rules so a robot can make choices when things change! An if-then rule says: if something is true, then do an action. For example, if the light is red, then stop.

Why I wrote this