Programming:Boolean Values

From Wiki
Revision as of 06:35, 5 July 2012 by Deoren (talk | contribs) (Added a new category)
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
Python X 0