Logical field return type.
Accepts values of True, False, or None/Null. boolean value of Unknown
is False (use Quantum if you want an exception instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__and__(x,
y)
AND (conjunction) x & y: True iff both x, y are True False iff at
least one of x, y is False Unknown otherwise |
source code
|
|
|
__rand__(x,
y)
AND (conjunction) x & y: True iff both x, y are True False iff at
least one of x, y is False Unknown otherwise |
source code
|
|
|
__or__(x,
y)
OR (disjunction): x | y => True iff at least one of x, y is True |
source code
|
|
|
__ror__(x,
y)
OR (disjunction): x | y => True iff at least one of x, y is True |
source code
|
|
|
__xor__(x,
y)
XOR (parity) x ^ y: True iff only one of x,y is True |
source code
|
|
|
__rxor__(x,
y)
XOR (parity) x ^ y: True iff only one of x,y is True |
source code
|
|
|
__bool__(x)
boolean value of Unknown is assumed False |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|