# operator !=(Entity, Entity)

> Entity instances are equal if they refer to the same entity.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public static bool operator !=(Entity lhs, Entity rhs)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): An Entity object.**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): Another Entity object.

### Returns

| Type                                                          | Description                                     |
| ------------------------------------------------------------- | ----------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if either Index or Version are different. |
