Top "Boolean" questions

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

How do I override DisplayFor boolean?

How do i create a display template so i can display a bool as Yes or No not a checkbox? …

asp.net-mvc-3 boolean checkbox display-templates
Simplify boolean expression algorithm

Anybody knows of an algorithm to simplify boolean expressions? I remember the boolean algebra and Karnaught maps, but this is …

algorithm boolean-logic boolean boolean-expression
Boolean Algebra Simplification of (x'y'+z)'+z+xy+wz

How would you simplify the following? I'm having a bit of trouble with the first part with negation. How would …

boolean boolean-logic boolean-expression boolean-operations demorgans-law
Python - logical evaluation order in "if" statement

In Python we can do this: if True or blah: print("it's ok") # will be executed if blah or True: # …

python boolean short-circuiting
Why the sizeof(bool) is not defined to be one, by the Standard itself?

Size of char, signed char and unsigned char is defined to be 1 byte, by the C++ Standard itself. I'm wondering …

c++ boolean standards sizeof
Defining double exclamation?

I understand what a double exclamation mark does (or I think I understand) but I am not sure how it …

c++ boolean logical-operators
What does Exclusive in XOR really mean?

Maybe this is just obvious to everyone but can someone explain where XOR (or Exclusive-OR) got its name from? What …

language-agnostic math logic boolean xor
Compact way of writing (a + b == c or a + c == b or b + c == a)

Is there a more compact or pythonic way to write the boolean expression a + b == c or a + c == b …

python boolean
Can a bool read/write operation be not atomic on x86?

Say we have two threads, one is reading a bool in a loop and another can toggle it at certain …

c++ x86 boolean atomic
Mathematical (Arithmetic) representation of XOR

I have spent the last 5 hours searching for an answer. Even though I have found many answers they have not …

math boolean logic xor algebra