Binary Operator "and"

QuantScript's binary

operator implements logical conjuction.


1 true and true # -> true
2 true and false # -> false
3 false and true # -> false
4 false and false # -> false
5 true and true and true # -> true
6 true and true and false # -> false

Table of Operands

Anything not listed here results in an Unknown.
This operator is commutative -

x and y
is the same as
y and x
This operator is type-commutative - the type of
x and y
is the same as the type of
y and x
This operator is left associative -
x and y and z
is the same as
(x and y) and z

Left OperandOperatorRight OperandResult