function process_raw_val(raw_attr_val, separator) {
  var attr_val_arr = []; // List contains the correct values
  // When or in value, split and put into attr_val_arr
  if (String(raw_attr_val).includes(separator)) {
    attr_val_arr = raw_attr_val.split(separator);

    for (var val_index = 0; val_index < attr_val_arr.length; val_index++) {
      var val = parseFloat(attr_val_arr[val_index].trim());

      if (!isNaN(val) && !String(raw_attr_val).includes('^')) {
        attr_val_arr[val_index] = val;
      } else {
        attr_val_arr[val_index] = attr_val_arr[val_index].trim();
      }
    }
  }

  // When single val, put it into attr_val_arr
  else {
    var val = parseFloat(raw_attr_val);
    if (!isNaN(val) && !String(raw_attr_val).includes('^')) {
      attr_val_arr.push(val);
    } else {
      attr_val_arr.push(raw_attr_val.trim());
    }
  }

  return attr_val_arr;
}
// Take a value (either single or separated by ' or ') and return a list that contains value(s)

Take a value (either single or separated by ' or ') and return a list that contains value(s)
Take a value ( either single or separated by ' or ' ) and return a list that contains value ( s )
function process_raw_val(raw_attr_val, separator) {
  var attr_val_arr = []; 
  if (String(raw_attr_val).includes(separator)) {
    attr_val_arr = raw_attr_val.split(separator);
    for (var val_index = 0; val_index < attr_val_arr.length; val_index++) {
      var val = parseFloat(attr_val_arr[val_index].trim());
      if (!isNaN(val) && !String(raw_attr_val).includes('^')) {
        attr_val_arr[val_index] = val;
      } else {
        attr_val_arr[val_index] = attr_val_arr[val_index].trim();
      }
    }
  }
  else {
    var val = parseFloat(raw_attr_val);
    if (!isNaN(val) && !String(raw_attr_val).includes('^')) {
      attr_val_arr.push(val);
    } else {
      attr_val_arr.push(raw_attr_val.trim());
    }
  }
  return attr_val_arr;
}
function process_raw_val ( raw_attr_val , separator ) { var attr_val_arr = [ ] ; if ( String ( raw_attr_val ) . includes ( separator ) ) { attr_val_arr = raw_attr_val . split ( separator ) ; for ( var val_index = 0 ; val_index < attr_val_arr . length ; val_index ++ ) { var val = parseFloat ( attr_val_arr [ val_index ] . trim ( ) ) ; if ( ! isNaN ( val ) && ! String ( raw_attr_val ) . includes ( '^' ) ) { attr_val_arr [ val_index ] = val ; } else { attr_val_arr [ val_index ] = attr_val_arr [ val_index ] . trim ( ) ; } } } else { var val = parseFloat ( raw_attr_val ) ; if ( ! isNaN ( val ) && ! String ( raw_attr_val ) . includes ( '^' ) ) { attr_val_arr . push ( val ) ; } else { attr_val_arr . push ( raw_attr_val . trim ( ) ) ; } } return attr_val_arr ; }
Take a value (either single or separated by ' or ') and return a list that contains value(s)
Take a value ( either single or separated by ' or ' ) and return a list that contains value ( s )
// List contains the correct values
 // When or in value, split and put into attr_val_arr
 // When single val, put it into attr_val_arr
