• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Actionscript Syntax > Using the if Statement

Using the if Statement

The if statement is the primary method of making decisions in ActionScript. The state-ment evaluates an expression, determines whether the expression is true or false, and then executes a series of statements if the expression is true. An alternative series of statements can be evaluated if the expression evaluates to false.

Simple if Statements

The simplest form of an if statement is


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint