Check if a product belongs to a subset of products
I have a product list with a subset for a particular type of products (e.g., sweets).
I have another module that is NOT dimensioned by products; however, product is one of the columns. I want to create a line item that returns true if the product belongs to this subset. How do I do that?