Top "Boolean" questions

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

Returning a boolean from a Bash function

I want to write a bash function that check if a file has certain properties and returns true or false. …

bash shell boolean
Easiest way to flip a boolean value?

I just want to flip a boolean based on what it already is. If it's true - make it false. …

c++ c boolean boolean-logic
Boolean Field in Oracle

Yesterday I wanted to add a boolean field to an Oracle table. However, there isn't actually a boolean data type …

oracle boolean sqldatatypes
Java check if boolean is null

How do you check if a boolean is null or not? So if I know "hideInNav" is null. How do …

java performance boolean nullable
SQL Server - boolean literal?

How to write literal boolean value in SQL Server? See sample use: select * from SomeTable where PSEUDO_TRUE another sample: …

sql sql-server boolean literals
In JavaScript, why is "0" equal to false, but when tested by 'if' it is not false by itself?

The following shows that "0" is false in Javascript: >>> "0" == false true >>> false == "0" true So why …

javascript boolean
What is the difference between bool and Boolean types in C#

What is the difference between bool and Boolean types in C#?

c# types boolean
Objective-C : BOOL vs bool

I saw the "new type" BOOL (YES, NO). I read that this type is almost like a char. For testing …

c objective-c types boolean
BOOLEAN or TINYINT confusion

I was designing a database for a site where I need to use a boolean datetype to store only 2 states, …

mysql types boolean tinyint
How do I get the opposite (negation) of a Boolean in Python?

For the following sample: def fuctionName(int, bool): if int in range(...): if bool == True: return False else: return True …

python boolean