# operator !=(PolygonId, PolygonId)

> Returns true if two PolygonId objects refer to different NavMesh nodes or if only one of them is null.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine.Experimental.AI](/engine/6000.7/script-reference/unityengine/experimental/ai.md)
* **Assembly:** UnityEngine.AIModule

> **Warning:**
>
> **Deprecated.** The experimental PolygonId struct has been deprecated. Use NavNode instead.

```csharp
public static bool operator !=(PolygonId x, PolygonId y)
```

### Parameters

**** (\[PolygonId]\(/engine/6000.7/script-reference/unityengine/experimental/ai/polygonid)): **** (\[PolygonId]\(/engine/6000.7/script-reference/unityengine/experimental/ai/polygonid)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

Additional Resources: [PolygonId.IsNull](/engine/6000.7/script-reference/unityengine/experimental/ai/polygonid/isnull.md)
