<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/!==(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s3neeoiySbyXlSg_ABtF"
  },
  "title" : "!==(_:_:)"
}
-->

# !==(_:_:)

Returns a Boolean value indicating whether two references point to
different object instances.

```
func !== (lhs: AnyObject?, rhs: AnyObject?) -> Bool
```

## Parameters

`lhs`

A reference to compare.

`rhs`

Another reference to compare.

## Discussion

This operator tests whether two instances have different identities, not
different values. For value inequality, see the not-equal-to operator
(`!=`) and the `Equatable` protocol.

---

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)