11.1. Switch Blocks
Asking the robot a question and doing something different based on the answer
Example: Does the robot see a line? Or not?
Basically a YES/NO QUESTION Switch blocks are found in the orange/flow tab
Write a program that changes the display based on if the touch sensor is pressed or not pressed. If pressed, your EV3 is happy! Display a smiley face. If not pressed, the EV3 is sad! Display a sad face. Hint: You will need to use the display block, loops and switch blocks!
Can you write a program that display big eyeballs if you touch it once and a sad face if you touch it a second time and toggles back and forth.