spreadsheet/ruleJS.all.full.js
function (type, exp1, exp2) {
      var result;

      switch (type) {
        case '=':
          result = (exp1 === exp2);
          break;

        case '>':
          result = (exp1 > exp2);
          break;

        case '<':
          result = (exp1 < exp2);
          break;

        case '>=':
          result = (exp1 >= exp2);
          break;

        case '<=':
          result = (exp1 === exp2);
          break;

        case '<>':
          result = (exp1 != exp2);
          break;

        case 'NOT':
          result = (exp1 != exp2);
          break;
      }

      return result;
    }
function (type, exp1, exp2) {
      var result;

      switch (type) {
        case '=':
          result = (exp1 === exp2);
          break;

        case '>':
          result = (exp1 > exp2);
          break;

        case '<':
          result = (exp1 < exp2);
          break;

        case '>=':
          result = (exp1 >= exp2);
          break;

        case '<=':
          result = (exp1 === exp2);
          break;

        case '<>':
          result = (exp1 != exp2);
          break;

        case 'NOT':
          result = (exp1 != exp2);
          break;
      }

      return result;
    }
function ( type , exp1 , exp2 ) { var result ; switch ( type ) { case '=' : result = ( exp1 === exp2 ) ; break ; case '>' : result = ( exp1 > exp2 ) ; break ; case '<' : result = ( exp1 < exp2 ) ; break ; case '>=' : result = ( exp1 >= exp2 ) ; break ; case '<=' : result = ( exp1 === exp2 ) ; break ; case '<>' : result = ( exp1 != exp2 ) ; break ; case 'NOT' : result = ( exp1 != exp2 ) ; break ; } return result ; }
match logic operation
@param {String} type
@param {String|Number} exp1
@param {String|Number} exp2
@returns {Boolean} result
match logic operation