> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.isvalid.md).

# IsValid

Property in [Range](/3.1/api/csharp/yarn.compiler/yarn.compiler.range.md)

## Summary

Gets a value indicating whether this range is valid.

```csharp
public bool IsValid { get; }
```

## Remarks

A range is valid when its start and end positions are both valid, and the start position is not after the end position.
