<> (inequality) 257
// true
2 <= 2;
// true
10 <= 3;
// false
"Allen" <= "Jack";
// true
"Jack" <= "Allen";
// false
"11" <= "3";
//true
"11" <= 3;
// numeric comparison
// false
"C" <= "abc";
// false
"A" <= "a";
// true
<> (inequality)
Availability
Flash 2.
Usage
expression1 <> expression2
Parameters
expression1,expression2
A number, string, Boolean value, variable, object, array,
or function.
Returns
A Boolean value.
Description
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:
• Numbers, strings, and Boolean values are compared by value.
• Variables, objects, arrays, and functions are compared by reference.
This operator was deprecated in Flash 5, and Macromedia recommends that you use the
!= operator.
See also
!= (inequality)