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

Hour 4. Writing Code in Flash > Comparisons and Operations

Comparisons and Operations

Comparing two things in ActionScript is simple. You use standard mathematical symbols, such as =, <, and >.

Are the Values the Same?

You have already seen how the = symbol is used to assign a value to a variable. To differentiate between times when you want to assign a value and times when you want to compare two values, the double equals symbol, ==, is used when you want to compare two things. The single equals operator is used to assign values to variables.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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