---
title: "!==(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/!==(_:_:)"
---

# !==(_:_:)

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

## Declaration

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

## Parameters

- `lhs`: A reference to compare.
- `rhs`: Another reference to compare.

## Discussion

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.

## See Also

### Comparing Identity

- [===(_:_:)](swift/===(_:_:).md)
