• Creates an expression that evaluates whether the result of the operand is between a lower and upper bound (inclusive). In other words, this expression checks whether operand is in the range [lowerBound, upperBound].

    Use this kind of expression as the if-expression in an ifThenElse, as a when-expression in a cases case expression or anywhere an expression that resolves to a boolean is required.

    Parameters

    • operand: Expression<number>

      The operand to evaluate.

    • lowerBound: Expression<number>

      The lowerBound to evaluate.

    • upperBound: Expression<number>

      The upperBound to evaluate.

    Returns Expression<boolean>

    An expression that evaluates to true if the result of operand >= the result of lowerBound and <= the result of upperBound.