MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 231

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

!== (strict inequality)
Availability
Flash Player 6.
Usage
expression1 !== expression2
Description
Operator; tests for the exact opposite of the
the same as the inequality operator except that data types are not converted. If
equal to
expression2
operator, the definition of equal depends on the data types being compared.
Numbers, strings, and Boolean values are compared by value.
Variables, objects, arrays, and functions are compared by reference.
Example
The following code displays the returned value of operations that use the equality, strict equality,
and strict inequality operators.
s1 = new String("5");
s2 = new String("5");
s3 = new String("Hello");
n
= new Number(5);
b = new Boolean(true);
s1 == s2; // true
s1 == s3; // false
s1 == n; // true
s1 == b; // false
s1 === s2;
// true
s1 === s3; // false
s1 === n; // false
s1 === b; // false
s1 !== s2; // false
s1 !== s3; // true
s1 !== n; // true
s1 !== b; // true
See also
!= (inequality)
, and their data types are equal, the result is
,
,
== (equality)
=== (strict equality)
operator. The strict inequality operator performs
===
expression1
. As with the
false
===
!== (strict inequality)
is
231

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents