<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/LessThanComparator",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents18LessThanComparatorC"
  },
  "title" : "LessThanComparator"
}
-->

# LessThanComparator

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

```
final class LessThanComparator<Property, PropertyType, ComparatorMappingType> where Property : EntityProperty<PropertyType>, PropertyType : _IntentValue, PropertyType : Sendable, PropertyType.UnwrappedType : Comparable
```

## Topics

### Creating a comparator

[`init(mappingTransform: (PropertyType.UnwrappedType) -> ComparatorMappingType)`](/documentation/AppIntents/LessThanComparator/init(mappingTransform:))

Declares support for `Comparable` `>` comparisons between a property and user-supplied values.

[`init(mappingTransform: (PropertyType.UnwrappedType) -> ComparatorMappingType)`](/documentation/AppIntents/LessThanComparator/init(mappingTransform:))

Declares support for `Comparable` `>` comparisons between a property and user-supplied values.

[`init<Spec>(withResolvers: () -> Spec, mappingTransform: (PropertyType.UnwrappedType) -> ComparatorMappingType)`](/documentation/AppIntents/LessThanComparator/init(withResolvers:mappingTransform:))

Declares support for `Comparable` `>` comparisons between a property and user-supplied values.

[`init<Spec>(withResolvers: () -> Spec, mappingTransform: (PropertyType.UnwrappedType) -> ComparatorMappingType)`](/documentation/AppIntents/LessThanComparator/init(withResolvers:mappingTransform:))

Declares support for `Comparable` `>` comparisons between a property and user-supplied values.

## Relationships

### Inherits From

[`EntityQueryComparator`](/documentation/AppIntents/EntityQueryComparator)

---

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)