eq (string ==)
Previous  Top  Next

Syntax
a eq b

Description
Similar to ==, however it assumes that variables are strings and has String Constant Precedence. This should be used when comparing two strings.

Sample
a = "hi";
b = "there";
trace(a == b);   // 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
==