Binary Operator "=="

QuantScript's binary equality

==
operator implements value equality checks.

Examples:

1 5 == 2 # -> false
2 5 == 5 # -> true
3 Friday == Monday # -> false
4 Friday == Friday # -> true
5 13:37 == 12:00 # -> false
6 13:37 == 13:37 # -> true
7 4 == 3 == 2 # -> unknown

Table of Operands

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

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

Left OperandOperatorRight OperandResult
Number==NumberBoolean
Number==Series<Number>Series<Boolean>
Number==MultiDataset<Number>MultiDataset<Boolean>
Day==DayBoolean
Day==Series<Day>Series<Boolean>
Day==MultiDataset<Day>MultiDataset<Boolean>
Time==TimeBoolean
Time==Series<Time>Series<Boolean>
Time==MultiDataset<Time>MultiDataset<Boolean>