AND

Description

Checks whether first argument and the second argument are true.

Boolean AND Boolean

Scalar<Boolean> AND Scalar<Boolean> : Scalar<Boolean>
Scalar<Boolean> AND GroupedScalar<Boolean> : GroupedScalar<Boolean>
GroupedScalar<Boolean> AND Scalar<Boolean> : GroupedScalar<Boolean>
GroupedScalar<Boolean> AND GroupedScalar<Boolean> : GroupedScalar<Boolean>

Comparing if a Scalar<Boolean> and Scalar<Boolean> are both true. Returns a Scalar<Boolean> with true when both terms result in true 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 greater 0 AND the PowerProduction is > 0. Only returns true if both are valid.

$PowerConsumption > 0 AND $PowerProduction > 0

Last updated

© 2023 MOOST AG