<!--
{
  "documentType" : "article",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/property-comparators",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Property comparators"
}
-->

# Property comparators

Specify the type of comparison to perform during a property-matched query.

## Topics

### Equatable comparisons

[`class EqualToComparator`](/documentation/AppIntents/EqualToComparator)

An object that determines whether the value of an equatable property is equal to the specified value.

[`class NotEqualToComparator`](/documentation/AppIntents/NotEqualToComparator)

An object that determines whether the value of an equatable property is not equal to the specified value.

[`class GreaterThanComparator`](/documentation/AppIntents/GreaterThanComparator)

An object that determines whether the value of a comparable property is greater than the specified value.

[`class GreaterThanOrEqualToComparator`](/documentation/AppIntents/GreaterThanOrEqualToComparator)

An object that determines whether the value of a comparable property is greater than or equal to the specified value.

[`class LessThanComparator`](/documentation/AppIntents/LessThanComparator)

An object that determines whether the value of a comparable property is less than the specified value.

[`class LessThanOrEqualToComparator`](/documentation/AppIntents/LessThanOrEqualToComparator)

An object that determines whether the value of a comparable property is less than or equal to the specified value.

[`class IsBetweenComparator`](/documentation/AppIntents/IsBetweenComparator)

This comparator is only supported for `Date` types in Shortcuts.

### String comparisons

[`class HasPrefixComparator`](/documentation/AppIntents/HasPrefixComparator)

An object that determines whether the value of a string property has the specified prefix.

[`class HasSuffixComparator`](/documentation/AppIntents/HasSuffixComparator)

An object that determines whether the value of a string property has the specified suffix.

[`enum StringComparisonOperator`](/documentation/AppIntents/StringComparisonOperator)

### Containment comparisons

[`class ContainsComparator`](/documentation/AppIntents/ContainsComparator)

An object that determines whether the value of sequence property contains the specified value.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)