NSPredicate

suggest change

Syntax

* C format string specifiers: %d, %s, %f, etc
* Object substitution: %@
* Keypath substitution: %K
* =, ==: Left-hand expression equals right-hand expression
* \>=, =>: Left-hand expression is greater than or equal to right-hand expression
* <=, =<: Left-hand expression is less than or equal to right-hand expression
* \>: Left-hand expression is greater than right-hand expression
* <: Left-hand expression is less than right-hand expression
* !=, <>: Left-hand expression is not equal to right-hand expression
* BETWEEN: Left-hand expression is between or equal to either of the values in the right-hand expression, which specifies lower and upper bounds - ex: BETWEEN { 0, 5 }
* AND, &&: Logical AND
* OR, ||: Logical OR
* NOT, !: Logical NOT
* BEGINSWITH: Left-hand expression begins with right-hand expression
* ENDSWITH: Left-hand expression ends with right-hand expression
* CONTAINS: Left-hand expression contains right-hand expression
* LIKE: Left-hand expression equals right-hand expression, with wildcard substitution
    * \*: Match zero or more characters
    * \?: Match one character

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents