Programming If/Then & Forever Statements    

If/Then Statements allow you to write a program that reacts to something occurring.

Now that you have learned how to code Motion for your robot, lets add an If/Then Statement.

Step #1: Write a program for your robot that has it move forward