Binary Operator ">"

QuantScript's binary greater than

>
operator implements value comparisons.

Examples:

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

Table of Operands

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

x > y
is not always 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>