User Guide

Operators 171
See also
with statement
=== strict equality operator
expression1 === expression2
Tests two expressions for equality; the strict equality (===)operator performs in the same way
as the equality (
==) operator, except that data types are not converted. The result is true if
both expressions, including their data types, are equal.
The definition of equal depends on the data type of the parameter:
Numbers and Boolean values are compared by value and are considered equal if they have
the same value.
String expressions are equal if they have the same number of characters and the characters
are identical.
Variables representing objects, arrays, and functions are compared by reference. Two such
variables are equal if they refer to the same object, array, or function. Two separate arrays
are never considered equal, even if they have the same number of elements.
Availability: ActionScript 1.0; Flash Lite 2.0
Operands
expression1 : Object - A number, string, Boolean value, variable, object, array, or
function.
expression2 : Object - A number, string, Boolean value, variable, object, array, or
function.
Returns
Boolean - The Boolean result of the comparison.