Top "Boolean" questions

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

in Dart, is there a `parse` for `bool` as there is for `int`?

in Dart, there's a convenient way to convert a String to an int: int i = int.parse('123'); is …

parsing boolean dart coercion
Using IF, AND, OR together with EQUAL operand together in Python

I'm trying to create a function where the given value (passed as a string) is checked to see if the …

python boolean conditional operand
How to get a bit value with SqlDataReader and convert it to bool?

I am retrieving user information from a database using a simple query. select * from dbo.[User] u where u.Email = @…

c# boolean bit sqldatareader
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean, using Table.addRow() with Jackcess

I am trying to write some values in a MS Access database using Jackcess. My values are originally represented using …

java string ms-access boolean jackcess
How to toggle an int / _Bool in C

Suppose we have an int and want to toggle it between 0 and 1 in a boolean fashion. I thought of the …

c boolean int toggle
NSPredicate - filtering values based on a BOOLEAN stored value

I have a core data model object called Entry. In this I have an attribute IsFavorite. I would like to …

iphone xcode nspredicate boolean
iPhone: Save boolean into Core Data

I have set up one of my core data attributes as a Boolean. Now, I need to set it, but …

iphone core-data boolean uiswitch
Boolean operators precedence

I would like to know if operator precedence in programming languages depends on implementation or there is a fixed rule …

boolean operator-keyword operator-precedence
Is there any difference between && and & with bool(s)?

In C++, is there any difference between doing && (logical) and & (bitwise) between bool(s)? bool val1 = foo(); …

c++ bitwise-operators boolean logical-operators language-lawyer
form submit checkbox sets value to "on" rather than "true"

Hi I have an html form which I am submitting via the click event on a button. The event fires $("#…

jquery checkbox submit boolean