---
title: "==(_:_:)"
framework: realitykit
role: symbol
role_heading: Operator
path: "realitykit/entity/==(_:_:)"
---

# ==(_:_:)

Indicates whether two entities are equal.

## Declaration

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

## Parameters

- `lhs`: The first entity to compare.
- `rhs`: The second entity to compare.

## Return Value

Return Value A Boolean value set to true if the two entities are equal.
