Between operator helper

The transformation of the BETWEEN operator requires the helper function BetweenFunc.

You might also be interested in Between operator transformation.

Between Operator Helper Function Definition

var BetweenFunc = function (expression,startExpr,endExpr) {
   if ([expression,startExpr,endExpr].some((arg) => arg == null)) {
      return null;
   }
   return expression >= startExpr && expression <= endExpr;
};

Last updated