Bit new to this, so please excuse me. Below is some JS I have started with as a template which works. If a number in the inventoryLevel string shows above one, it will display an in stock message, styled nicely.
Can anyone please tell me how I can change the above to search for “Sold Out” instead of a number? It’s something I need to change in the bolded bit above but I don’t know what do.
Any help would be greatly appreciated.
Thank you very much.