Color Sensor - Conditionals

For most robots, the world is just as confusing as it is for us.

Therefore we usually have to program a lot of rules for them to follow to make it easy.

Whenever a robot needs to make a decision it requires a coding block called a conditional, or IF/ELSE.

Look under the Logic block category and find these:

Note that when you press on the gear icon you can add Else If abd Else sub-blocks.

In our next test, we will need to use IF/ELSE blocks to make decisions about what to do. Let's do it together!

Color Sensor - Test 3

Color Sensor - Test 4

Color Sensor - Test 5