eq (string ==)
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
a eq b

Description
Similar to ==, however it ensures that string comparison is always used, even if either value is a number.

Sample
a = "hi";
b = "there";
trace(a == b);   // for SWF4, returns 1 (true) as both a and b are 
converted to numeric.
trace(a eq b);   // returns 0 (false) as strings are different which is the expected result.

See Also
==