I'm trying to filter such that criteria is met for each AND every item in a set vice each OR every item.
If I use
Example: I'm trying to view all grocery lists that included milk AND eggs (defined in desiredGroceries Set).
If I use the above code, it returns all lists that included milk as well as lists that included eggs.
But I only want the lists that include both milk and eggs.
What's the correct Predicate for this?
If I use
Code Block groceryItem IN %@, desiredGroceries
it acts like an OR statement.Example: I'm trying to view all grocery lists that included milk AND eggs (defined in desiredGroceries Set).
If I use the above code, it returns all lists that included milk as well as lists that included eggs.
But I only want the lists that include both milk and eggs.
What's the correct Predicate for this?