---
title: "isEqual(to:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nwpath/isequal(to:)"
---

# isEqual(to:)

Comparison method for NWPath objects.

## Declaration

```swift
func isEqual(to path: NWPath) -> Bool
```

## Parameters

- `path`: Another doc://com.apple.networkextension/documentation/NetworkExtension/NWPath object to compare.

## Discussion

Discussion Returns true if the objects are equal, false otherwise. If two NWPath objects are equal, this means that the underlying network configuration (routes, interfaces, address, etc.) are the same between them.
