Conditionals

Conditionals

Making decisions can be challenging. With a set of guidelines or parameters, a computer can make the decisions for you. And FAST!

Basically, you want to command the turtle (computer) to setcolor 70 (blue) and then make a square ONLY IF it is true that where the turtle is located has an X coordinate (xcor) that is greater than 0 (on the top portion of the screen).

To achieve a different color on the lower portion, create an IF statement (a.k.a. - conditional statement) that says the opposite of the above and setcolor equals some other value.