Difference between revisions of "Programming:Boolean Values"

From WhyAskWhy.org Wiki
Jump to: navigation, search
m (Removed duplicate title and added note)
m (Added a new category)
Line 1: Line 1:
 
[[Category:Programming]]
 
[[Category:Programming]]
 
[[Category:DataType]]
 
[[Category:DataType]]
 +
[[Category:Tips]]
  
 
I sometimes mix up what language treats 0 as True or False, so this is a handy list to remind me.
 
I sometimes mix up what language treats 0 as True or False, so this is a handy list to remind me.

Revision as of 06:35, 5 July 2012


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
PHP X 0
Python X 0