# `GSPath hasOncurve`

*Instance Method*

Whether the path contains at least one on-curve node.

## Declaration

```swift
func hasOncurve() -> Bool
```

```objc
- (BOOL) hasOncurve;
```

```python
hasOncurve() -> bool
```

## See Also

### Checking Path Contents

- [`GSPath hasTrueTypeOutline`](/Core/GlyphsCore/GSPath/hasTrueTypeOutline) — Whether the path uses TrueType-compatible node types.
- [`GSPath hasTrueTypeCurve`](/Core/GlyphsCore/GSPath/hasTrueTypeCurve) — Whether the path contains quadratic curve node types.
- [`GSPath hasNonCubicCurves`](/Core/GlyphsCore/GSPath/hasNonCubicCurves) — Whether the path contains curve node types that are not cubic.
- [`GSPath hasPenPoints`](/Core/GlyphsCore/GSPath/hasPenPoints) — Whether any node contains pen point data.

