# int SetFlag(int&, int, bool)

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

## Exact signature

```text
int SetFlag(int&, int, bool)
```

## Description

Sets or clears the requested bits in an integer passed by reference.

## Parameters and return type

**Return type:** `int`

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

`&` indicates a parameter passed by reference, which can be modified.

## Read and share

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

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