<!--
{
  "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/NotEqualToComparator",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents20NotEqualToComparatorC"
  },
  "title" : "NotEqualToComparator"
}
-->

# NotEqualToComparator

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

```
final class NotEqualToComparator<Property, PropertyType, ComparatorMappingType> where Property : EntityProperty<PropertyType>, PropertyType : _IntentValue, PropertyType : Equatable, PropertyType : Sendable
```

## Topics

### Creating a comparator

[`init(mappingTransform:)`](/documentation/AppIntents/NotEqualToComparator/init(mappingTransform:))

Declares support for `Equatable` `!=` comparisons between a property and user-supplied values.

[`init(mappingTransform:)`](/documentation/AppIntents/NotEqualToComparator/init(mappingTransform:))

Declares support for `Equatable` `!=` comparisons between a property and user-supplied values.

[`init(withResolvers:mappingTransform:)`](/documentation/AppIntents/NotEqualToComparator/init(withResolvers:mappingTransform:))

Declares support for `Equatable` `!=` comparisons between a property and user-supplied values.

[`init(withResolvers:mappingTransform:)`](/documentation/AppIntents/NotEqualToComparator/init(withResolvers:mappingTransform:))

Declares support for `Equatable` `!=` 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)