# bool AIVar(int, int, int)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
bool AIVar(int, int, int)
```

## Description

Three-argument AIVar returns whether a selected bit is set in an indexed AI variable word after guarded player and variable lookup.

## Parameters and return type

**Return type:** `bool`

| Position | Type |
| --- | --- |
| 1 | `int` |
| 2 | `int` |
| 3 | `int` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`int AIVar(int, int)`](/imperivm/en/CKS/reference/api-ca54502365e781/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-5320155002e052.md)
- [JSON](/imperivm/CKS/api/entries/api-5320155002e052?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
