code: function cleanValue(val, char) {
    var num;
    var conditions = val.split(' ');
    var i = 0;
  
    while (!num && i < conditions.length) {
      if (conditions[i].indexOf(char) > -1) {
        num = conditions[i].replace(/<|>|~/g, '');
      }
      i++;
    }
  
    return parseFloat(num);
  }
docs: Return the value for a certain condition
  
  @example
  cleanValue('foo <100', '<') == 100
  cleanValue('>5 <1 bar', '>') == 5
  
  @param  {String} val
  @param  {String} char
  @return {Float}