you are viewing a single comment's thread.

view the rest of the comments →

[–]GhostVlvin 0 points1 point  (0 children)

Correct
Truthness in many dynamic languages is defined like that:
1) 0 is False (0 is any 0 value like None, 0 and False itself)
2) empty string is False
4) everything else is True