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

# isEqual(to:)

Returns a Boolean value that indicates whether the value object and another value object are equal.

## Declaration

```swift
func isEqual(to value: NSValue) -> Bool
```

## Parameters

- `value`: The other value object with which to compare the value object.

## Return Value

Return Value true if both value objects are equal; otherwise, false.

## Discussion

Discussion The NSValue class compares the type and contents of each value object to determine equality.
