# Check

`Check` static class with its methods provides functionality for determining if some variable's value meets specified conditions.

## IsInRange

Determines whether specified string value length lays in provided boundaries with inclusion:

```csharp
Check.IsInRange("123", 4, 8); // --> false
Check.IsInRange("123456", 4, 8); // --> true
```

Same method for DateTime determines whether specified value lays in provided boundaries with inclusion:

```csharp
Check.IsInRange("1980-01-01", DateTime.Parse("1990-01-01"), DateTime.Parse("2022-12-31")) // --> false
Check.IsInRange("2000-05-30", DateTime.Parse("1990-01-01"), DateTime.Parse("2022-12-31")) // --> true
```

There are similar methods for checking `IsGreaterThan` and `IsLessThan` conditions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.structr.dev/utilities/abstractions/check.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
