Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Operators > eq (string equality) | |||
Flash Lite 1.0.
expression1eqexpression2
expression1, expression2 Numbers, strings, or variables.
Comparison operator; compares two expressions for equality and returns true if the string representation of expression1 is equal to the string representation of expression2; otherwise, the operation returns false.
The following examples show true and false results:
word = "persons";
figure = "55";
trace("persons" eq "people"); // output: 0(false)
trace("persons" eq word); // output: 1(true)
trace(figure eq 50 + 5); // output: 1(true)
trace(55.0 eq 55); // output: 1(true)
|
|
|
|