---
title: NSComparisonPredicate.Modifier.all
framework: foundation
role: symbol
role_heading: Case
path: foundation/nscomparisonpredicate/modifier/all
---

# NSComparisonPredicate.Modifier.all

A predicate to compare all entries in the destination of a to-many relationship.

## Declaration

```swift
case all
```

## Discussion

Discussion The left hand side must be a collection. The corresponding predicate compares each value in the left hand side with the right hand side, and returns false when it finds the first mismatch—or true if all match.

## See Also

### Constants

- [NSComparisonPredicate.Modifier.direct](foundation/nscomparisonpredicate/modifier/direct.md)
- [NSComparisonPredicate.Modifier.any](foundation/nscomparisonpredicate/modifier/any.md)
