> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/ff12-lua-loader/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeavin.gitbook.io/ff12-lua-loader/general/functions/check-min-version.md).

# Check Min Version

### Signature

```csharp
bool checkMinVersion(s32 major, s32 minor, s32 patch)
```

### Description

Returns whether the provided Lua loader version matches with the current one (`true`) or not (`false`).

### Arguments

#### Major

The major version number which indicates significant updates with major changes that break backwards compatibility.

#### Minor

The major version number which indicates updates with feature additions or improvements that do not break backward compatibility.

#### Patch

The major version number which indicates updates with bug fixes or minor improvements that do not affect existing features.

### Example

#### Check Minimum Lua Loader Version

```lua
if not (checkMinVersion and checkMinVersion(1, 5, 1)) then
  print("Invalid version.")
  return
end
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://xeavin.gitbook.io/ff12-lua-loader/general/functions/check-min-version.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.
