Most software developers know they exist, but some (including me) find them hard to visualise, especially for combinations of operators, or for less common operators: the Truth table – Wikipedia.
The common operators that everyone seems to understand are these:
- logical
true
- logical
false
- logical
negation
- logical
and
- logical
or
- logical
xor
It becomes harder with a series of combinations, for instance series of and (not ...) and (not ...) and (not ...)
– not to be confused with nand
, similarly or (not ...) or (not ...) or (not ...)
– not to be confused with nor
, which both can be transformed according to the De Morgan’s laws – Wikipedia:
In set theory and Boolean algebra, these are written formally as