1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

ActionScripting Basics: What’s the difference between = and ==?

By

1 of 3

Have you ever....?
ActionScripting Basics: What’s the difference between = and ==?
Ever typed if (x = y) into your ActionScripts and then wondered why it didn’t work? = and == aren’t actually synonymous; == evaluates equality, while = assigns a value.

©2014 About.com. All rights reserved.