# operator !=(EntityQueryMask, EntityQueryMask)

> Compare two instances for inequality.

## Definition

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

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

### Parameters

**** (\[EntityQueryMask]\(/engine/7000.0/script-reference/unity/entities/entityquerymask)): The left instance to compare.**** (\[EntityQueryMask]\(/engine/7000.0/script-reference/unity/entities/entityquerymask)): The right instance to compare.

### Returns

| Type                                                          | Description                                                                                |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | False if both masks refer to the same archetype set within the same world, or true if not. |
