re: Problem with the string 'false' VIEW POST


I'm always nervous about words like "false" no matter what the language situation is.

I'll find myself writing things like if string == "Definitely 100% true" so the only true value is that and everything else is false, just on paranoia that I don't understand the truthiness well enough.


Specially javascript. Difficult to understand truthy and falsy values 😅


Depends on the context. If the setting is requirePasscodeBeforeLaunchingNukes, you might want to use !== "false" instead 😅


Haha... Nice one 😂

Code of Conduct Report abuse