== (numeric equality)
97
== (numeric equality)
Availability
Flash Lite 1.0.
Usage
expression1 == expression2
Operands
expression1, expression2
Numbers, Boolean values, or variables.
Description
Operator (comparison); tests for equality; the exact opposite of the
<>
operator. If
expression1
is equal to
expression2
, the result is
true
. As with the
<>
operator, the
definition of
equal
depends on the data types being compared:
■
Numbers and Boolean values are compared by value.
■
Variables are compared by reference.
Example
The following examples show
true
and
false
return values:
trees = 7;
bushes = "7";
shrubs = "seven";
trace (trees == "7");// output: 1(true)
trace (trees == bushes);// output: 1(true)
trace (trees == shrubs);// output: 0(false)
See also
eq (string equality)
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...