Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCompoundPredicateMBS class.

NSCompoundPredicateMBS.andPredicateWithSubpredicates(predicates() as NSPredicateMBS) as NSPredicateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a new predicate formed by AND-ing the predicates in a given array.
Example
dim n1 as NSPredicateMBS = NSPredicateMBS.predicateWithValue(true)
dim n2 as NSPredicateMBS = NSPredicateMBS.predicateWithValue(false)

dim n as NSPredicateMBS = NSCompoundPredicateMBS.andPredicateWithSubpredicates(array(n1,n2))

MsgBox n.predicateFormat

subpredicates: An array of NSPredicate objects.

Returns a new predicate formed by AND-ing the predicates specified by subpredicates.
An AND predicate with no subpredicates evaluates to TRUE.

Some examples using this method:

NSCompoundPredicateMBS.notPredicateWithSubpredicate(predicate as NSPredicateMBS) as NSPredicateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a new predicate formed by NOT-ing a given predicate.

predicate: A predicate.

Returns a new predicate formed by NOT-ing the predicate specified by predicate.

NSCompoundPredicateMBS.orPredicateWithSubpredicates(predicates() as NSPredicateMBS) as NSPredicateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a new predicate formed by OR-ing the predicates in a given array.

subpredicates: An array of NSPredicate objects.

Returns a new predicate formed by OR-ing the predicates specified by subpredicates.

An OR predicate with no subpredicates evaluates to FALSE.

The items on this page are in the following plugins: MBS MacCloud Plugin.


The biggest plugin in space...