original_string: public static function comparison($input, $check, $mode) {
          switch (mb_strtolower($mode)) {
              case 'greater':
              case 'gt':
              case '>':
                  return ($input > $check);
              break;
              case 'greaterorequal':
              case 'gte':
              case '>=':
                  return ($input >= $check);
              break;
              case 'less':
              case 'lt':
              case '<':
                  return ($input < $check);
              break;
              case 'lessorequal':
              case 'lte':
              case '<=':
                  return ($input <= $check);
              break;
              case 'equal':
              case 'eq':
              case '==':
              case '=':
                  return ($input == $check);
              break;
              case 'notequal':
              case 'neq':
              case 'ne':
              case '!=':
                  return ($input != $check);
              break;
              default:
                  throw new InvalidArgumentException(sprintf('Unsupported mode %s for %s', $mode, __METHOD__));
              break;
          }
      }
code: public static function comparison($input, $check, $mode) {
          switch (mb_strtolower($mode)) {
              case 'greater':
              case 'gt':
              case '>':
                  return ($input > $check);
              break;
              case 'greaterorequal':
              case 'gte':
              case '>=':
                  return ($input >= $check);
              break;
              case 'less':
              case 'lt':
              case '<':
                  return ($input < $check);
              break;
              case 'lessorequal':
              case 'lte':
              case '<=':
                  return ($input <= $check);
              break;
              case 'equal':
              case 'eq':
              case '==':
              case '=':
                  return ($input == $check);
              break;
              case 'notequal':
              case 'neq':
              case 'ne':
              case '!=':
                  return ($input != $check);
              break;
              default:
                  throw new InvalidArgumentException(sprintf('Unsupported mode %s for %s', $mode, __METHOD__));
              break;
          }
      }
code_tokens: public static function comparison ( $ input , $ check , $ mode ) { switch ( mb_strtolower ( $ mode ) ) { case 'greater' : case 'gt' : case '>' : return ( $ input > $ check ) ; break ; case 'greaterorequal' : case 'gte' : case '>=' : return ( $ input >= $ check ) ; break ; case 'less' : case 'lt' : case '<' : return ( $ input < $ check ) ; break ; case 'lessorequal' : case 'lte' : case '<=' : return ( $ input <= $ check ) ; break ; case 'equal' : case 'eq' : case '==' : case '=' : return ( $ input == $ check ) ; break ; case 'notequal' : case 'neq' : case 'ne' : case '!=' : return ( $ input != $ check ) ; break ; default : throw new InvalidArgumentException ( sprintf ( 'Unsupported mode %s for %s' , $ mode , __METHOD__ ) ) ; break ; } }
docstring: Compare two numerical values.
  
  @param int $input
  @param int $check
  @param string $mode
  @return bool
  @throws \Titon\Utility\Exception\InvalidArgumentException
docstring_tokens: Compare two numerical values .