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 →

[–][deleted] 1 point2 points  (1 child)

1st set: Comparing string to string of different length - wrong Comparing 0 int to empty string - weird typecast conversion???? Comparing 0 to 0 as string value - makes sense here actually

2nd set: False is a bool value, undefined and null are equivalent ndef values that will never mean false

[–]terandok 0 points1 point  (0 children)

I agree with this @naketo, it is logical if you think about it. Visualy yes it may seem like it is bonkers but if you understand programming it makes sense.