1. Computing & Technology

Discuss in my forum

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

By , About.com Guide

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.

©2012 About.com. All rights reserved.

A part of The New York Times Company.