!== (strict inequality)
231
!== (strict inequality)
Availability
Flash Player 6.
Usage
expression1
!==
expression2
Description
Operator; tests for the exact opposite of the
===
operator. The strict inequality operator performs
the same as the inequality operator except that data types are not converted. If
expression1
is
equal to
expression2
, and their data types are equal, the result is
false
. As with the
===
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)
,
== (equality)
,
=== (strict equality)
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...