![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 5.
expression1
!=
expression2
None.
A Boolean value.
Operator (inequality); tests for the exact opposite of the ==
operator. If expression1
is equal to expression2
, the result is false
. As with the ==
operator, the definition of equal depends on the data types being compared.
The following example illustrates the result of the !=
operator:
5 != 8
returns true
5 != 5
returns false
This example illustrates the use of the !=
operator in an if
statement.
a = "David";
b = "Fool"
if (a != b){
trace("David is not a fool");
}
!== (strict inequality)
, == (equality)
, === (strict equality)
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |