In this lesson, I will explain to you what the ActionScript if/else conditional statement is and how to use it in your Flash movies through a visual example. You will learn:
- What is a conditional statement,
- What is a circumstance,
- Various comparison operators and more.
Click on the dark area in the Flash movie below to see how the conditional if/else statement works behind the scenes to turn the light on and off.