title: Combining "And" and "Or" on NSPredicates
body: <p>I want to do something like this:</p>
  
  <pre><code>NSPredicate(format: "name contains[cd] %@ AND (position == %@ OR position == %@), name, position1, position2)
  </code></pre>
  
  <p>However, I've tried that and I keep getting serious Core Data application errors. I then tried using NSCompoundPredicate, but I can't combine "AND" and "OR"s there either.  </p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/10317692/combining-and-and-or-condition-in-nspredicate">Combining &#39;AND&#39; and &#39;OR&#39; Condition in NSPredicate</a> and it's different in that the questioner wanted an "OR" on a subcollection so the answer involves a subquery which I don't want.</p>
  
  <p>How do I do this?</p>