1. Computing

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.