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

# isEqual(to:)

Compares the parameter node to the receiving node.

## Declaration

```swift
func isEqual(to node: SKNode) -> Bool
```

## Parameters

- `node`: The node to compare to the receiving node.

## Return Value

Return Value true if the node is a descendant of the parent node; otherwise false.

## See Also

### Modifying the Node Tree

- [Accessing and Modifying the Node Tree](spritekit/accessing-and-modifying-the-node-tree.md)
- [addChild(_:)](spritekit/sknode/addchild(_:).md)
- [insertChild(_:at:)](spritekit/sknode/insertchild(_:at:).md)
- [move(toParent:)](spritekit/sknode/move(toparent:).md)
- [removeFromParent()](spritekit/sknode/removefromparent().md)
- [removeAllChildren()](spritekit/sknode/removeallchildren().md)
- [removeChildren(in:)](spritekit/sknode/removechildren(in:).md)
- [inParentHierarchy(_:)](spritekit/sknode/inparenthierarchy(_:).md)
