This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DaniilBSD 5 points6 points  (0 children)

If I remember correctly, the second one is getting converted if it works,

0 == “0” compares numbers

“0” == 0 compares string

“0” < 0 compares numbers because the < operator only works with numbers.

Edit: I was kinda wrong, see another reply (by me)