Programming:Boolean Values

From WhyAskWhy.org Wiki
Revision as of 22:20, 17 November 2015 by Deoren (talk | contribs) (Added entry for PowerShell)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


I sometimes mix up what language treats 0 as True or False, so this is a handy list to remind me.

X = anything but zero

True False
Bash 0 X
C/C++ X 0
PowerShell X 0, $false, ""
PHP X 0
Python X 0
MySQL X 0

References