Top "Boolean" questions

A Boolean data type is a data type with only two possible values: true or false.

JS generate random boolean

Simple question, but I'm interested in the nuances here. I'm generating random booleans using the following method I came up …

javascript random boolean
How to create a boolean value?

I am totally new to XSLT and can't work out where I am going wrong with the following code. <…

xml xslt boolean xslt-1.0 xslt-2.0
Is there a difference between YES/NO,TRUE/FALSE and true/false in objective-c?

Simple question really; is there a difference between these values (and is there a difference between BOOL and bool)? A …

objective-c boolean
double equals vs is in python

I run the following in the Python interpreter: >>> foo = 10 >>> dir(foo) == dir(10) True >&…

python comparison boolean equals equality
In javascript, is an empty string always false as a boolean?

in javascript, var a = ''; var b = (a) ? true : false; var b will be set to false. is this a …

javascript string boolean
Checking the "boolean" result of an "int" type

I'm learning Java, coming from C and I found an interesting difference between languages with the boolean type. In C …

java boolean int logical-operators
What's the difference between the dual and the complement of a boolean expression?

Its the same thing right? Or is there a slight difference? I just wanna make sure I'm not misunderstanding anything.

boolean boolean-logic boolean-expression boolean-operations
Get boolean from database using Android and SQLite

How can I obtain the value of a boolean field in an SQLite database on Android? I usually use getString(), …

java android sqlite boolean
Parsing a string into a boolean value in PHP

Today I was playing with PHP, and I discovered that the string values "true" and "false" are not correctly parsed …

php parsing boolean
What's the difference between boolean and Boolean in Java?

I would like to understand the difference between the Boolean and boolean types in Java, specifically as they relate to …

java gwt boolean