Boolean - (Logical) Operator (OR, AND, XOR, ...)

> (Data|State) Management and Processing > (Data Type|Data Structure) > Data Type - Boolean

1 - About

Boolean operator

???? A logical operation is usually a comparison ????

Boolean operator has the same than arithmetic bitewise operator

Advertising

3 - Computer

In computer, a logical operator is implemented by a logic gate

4 - Negation

Any Boolean expression (such as the outcome of a comparison operator may be negated with not.

5 - Operator

And and or have normally lower priorities than comparison operators;

Between them, not has the highest priority and or the lowest, so that:

  • A and not B or C is equivalent to
  • (A and (not B)) or C.

6 - Illustration

And, Or and Xor seem incorrect.

data/type/boolean/operator.txt · Last modified: 2019/07/08 13:36 by gerardnico