AFAIK, number string comparisons automatically change the string to a number. If the string does not include a number in a recognizable format, it is given the value of 0.
That's my take, I may be wrong. That's why I always test with ===false and not ==0 or similar as you may get weird positive matches.
diafol
Keep Smiling
10,613 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57
Question Answered as of 1 Year Ago by
diafol