In this episode we learn how we can use the if() statement to execute some code conditionally. That means the code is not executed always, but only if certain condition is met. In our example, the condition is that the circle has moved too far to the right. In that case, we bring the circle back to the left border of the screen.
We also see how to animate two objects at different speeds, and how each object can have a different color.