Less Than

Description

Checks whether first argument is less than the second argument.

any < any

Scalar<any> < Scalar<any> : Scalar<Boolean>
Scalar<any> < GroupedScalar<any> : GroupedScalar<Boolean>
GroupedScalar<any> < Scalar<any> : GroupedScalar<Boolean>
GroupedScalar<any> < GroupedScalar<any> : GroupedScalar<Boolean>

Comparing if a Scalar<any> is less than another Scalar<any>. Returns a Scalar<Boolean> either true oif the first operator is less than the second otherwise false.

If one argument is a Scalar, and the other one a GroupedScalar, then the operation is performed by taking the Scalar value and the value of each group value, which results another GroupedScalar (it has same group size, as the one from the input argument).

If both arguments are GroupedScalar, then the operation is performed by taking values with same group key, which results in another Grouped Scalar (the group size is equal or smaller than the ones of the input arguments).

Examples

Check if the PowerConsumption is less than the PowerProduction

$PowerConsumption < $PowerProduction

Last updated

© 2023 MOOST AG