# `GSNode previousOncurveNode`

*Instance Method*

The previous on-curve node in the path.

## Declaration

```swift
func previousOncurve() -> GSNode?
```

```objc
- (GSNode *) previousOncurveNode;
```

```python
previousOncurveNode() -> GSNode
```

## Discussion

For a closed path, navigation wraps around the path. For an open path, this is `nil` when no previous on-curve node exists. For a path consisting solely off-curve nodes, returns `nil`.

See also [`GSPath previousOncurveNodeFromIndex:`](/Core/GlyphsCore/GSPath/previousOncurveNodeFromIndex:).

## See Also

### Path Navigation

- [`GSNode nodeIndex`](/Core/GlyphsCore/GSNode/nodeIndex) — The index of the node in its path.
- [`GSNode nextOncurveNode`](/Core/GlyphsCore/GSNode/nextOncurveNode) — The next on-curve node in the path.

