User Guide

86 Chapter 5: ActionScript Core Language Elements
true
foo
foo
false
The following example illustrates comparison by reference with two arrays:
var a:Array = [ 1, 2, 3 ];
var b:Array = [ 1, 2, 3 ];
trace(a); // 1, 2, 3
trace(b); // 1, 2, 3
trace(a!=b); // true
a = b;
trace(a); // 1, 2, 3
trace(b); // 1, 2, 3
trace(a!=b); // false
// trace statement output:
1,2,3
1,2,3
true
1,2,3
1,2,3
false
See also
! (logical NOT)
, !== (strict inequality), && (logical AND), || (logical OR), ==
(equality)
, === (strict equality)
!== (strict inequality)
Availability
Flash Player 6.
Usage
expression1 !== expression2
Parameters
None.
Returns
A Boolean value.