I am working with some data for Items, and unfortunately each Item has a property called medium, and the value for medium can be one of instore, instore,online, or online.
I am trying to create a filter, but I am not sure the best way to iterate through all the list of Items I get back (100 at a time) to check if they instore, instore,online, or online.
If I select instore from the drop-down, how can I iterate through my array of 100 Items to find which ones have medium: "instore" and also medium: "instore,online"?
For example, if I select "instore" then do I check each item for "instore" OR "instore,online"? And if I choose online, check "online" or "instore,online"? Doesn't this seem really bad way to do things?
How do I handle the comma separated?
 
     
     
     
     
    