---
title: "==(_:_:)"
framework: appintents
role: symbol
role_heading: Operator
path: "appintents/entityidentifier/==(_:_:)"
---

# ==(_:_:)

Compares two entity identifiers for equality.

## Declaration

```swift
static func == (lhs: EntityIdentifier, rhs: EntityIdentifier) -> Bool
```

## Discussion

Discussion important: This implementation intentionally ignores the stableIdentifier field. Only entityType and identifier are compared. This ensures that the same entity on different devices (same local ID, different stable ID) is considered equal, enabling correct Dictionary/Set behavior.
