Keep certain items at base price

This snippet will keep items that have an * symbol anywhere in the note field at Base Price. Do not use this rule if you are using the symbol for any other rules in your script.

var item = FILLZ.ITEM.v1;
var pat = /\*/;
if (pat.test(item.note)) return item.base_price;
Have more questions? Submit a request