NSCompoundPredicateMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem