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

# OneOfComparisonOperator

Operators that indicate the type of containment check for a conditional statement.

```
enum OneOfComparisonOperator
```

## Topics

### Containment operators

[`case oneOf`](/documentation/AppIntents/OneOfComparisonOperator/oneOf)

An operator that determines if the parameter is equal to one of the values in the array.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)