Difference between revisions of "Programming:Boolean Values"

From WhyAskWhy.org Wiki
Jump to: navigation, search
m (Deoren moved page Boolean Values to Programming:Boolean Values without leaving a redirect)
m (Added MySQL to the list)
Line 28: Line 28:
 
|0
 
|0
 
|-
 
|-
 +
!MySQL
 +
|X
 +
|0
 
|}
 
|}
 +
 +
== References ==
 +
 +
* http://stackoverflow.com/questions/289727/which-mysql-datatype-to-use-for-storing-boolean-values

Revision as of 21:48, 13 October 2014


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
MySQL X 0

References