Strict Equality Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

See also
with statement

=== strict equality operator

expression1 === expression2
Tests two expressions for equality; the strict equality (
as the equality (
) operator, except that data types are not converted. The result is
==
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
function.
expression2 :
Object
function.
Returns
- The Boolean result of the comparison.
Boolean
- A number, string, Boolean value, variable, object, array, or
- A number, string, Boolean value, variable, object, array, or
)operator performs in the same way
===
if
true
Operators
171

Advertisement

Table of Contents
loading

Table of Contents