# `GSNode index()`

*Instance Method*

The index of the node in its path, or `nil` when the node is not in a path.

## Declaration

```swift
func index() -> Int?
```

## See Also

### Path Navigation

- [`GSNode nextOncurveNode`](/Core/GlyphsCore/GSNode/nextOncurveNode) — The next on-curve node in the path.
- [`GSNode previousOncurveNode`](/Core/GlyphsCore/GSNode/previousOncurveNode) — The previous on-curve node in the path.

