title: Multiple conditions in NSPredicate
body: <p>How to use multiple conditions with <code>NSPredicate</code>?</p>
  
  <p>I am using this but not getting anything in the returned array .</p>
  
  <pre><code>NSPredicate *placePredicate = [NSPredicate predicateWithFormat:@"place CONTAINS[cd] %@ AND category CONTAINS[cd] %@ AND ((dates &gt;= %@) AND (dates &lt;= %@)) AND ((amount &gt;= %f) AND (amount &lt;= %f))",placeTextField.text,selectedCategory,selectedFromDate,selectedToDate,[amountFromTextField.text floatValue],[amountToTextField.text floatValue]];
  
  NSArray *placePredicateArray = [dataArray filteredArrayUsingPredicate:placePredicate];
  
  NSLog(@"placePredicateArray %@", placePredicateArray);
  </code></pre>
  
  <p>The amount and the category can be empty sometimes. How should I construct the <code>NSPredicate</code>?</p>