---
name: "BIS_fnc_bitwiseOR"
type: function
status: ok
groups: ["Bitwise"]
arma3_since: "1.66"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_bitwiseOR
revid: 328577
updated: 2022-07-13T17:02:24Z
---

# BIS_fnc_bitwiseOR

*Function · Bitwise · Arma 3 v1.66*

## Description

Performs bitwise OR operation on two decimal or hexadecimal unsigned 24 bit integers
(Hexadecimal number representation is simply auto-converted into decimal by the engine)

**Limitations**:

Due to various limitations of the Real Virtuality engine this function is
intended to work with unsigned 24 bit integers only. This means that the
supported range is 2^0...2^24 (1...16777216)

## Syntax

```sqf
[num1, num2] call BIS_fnc_bitwiseOR
```

**Parameters:**

- `num1`: [Number](../topics/Number.md) - decimal or hexadecimal unsigned 24 bit integer
- `num2`: [Number](../topics/Number.md) - decimal or hexadecimal unsigned 24 bit integer

**Returns:** [Number](../topics/Number.md) - decimal number

## Examples

### Example 1

```sqf
[2 + 4 + 8 + 32, 1] call BIS_fnc_bitwiseOR; // 47
[1 + 2 + 16 + 32, 4 + 8] call BIS_fnc_bitwiseOR; // 63
[1 + 2 + 16 + 32, 4 + 32] call BIS_fnc_bitwiseOR; // 55
[1 + 2 + 16 + 32, 16 + 32] call BIS_fnc_bitwiseOR; // 51
```

## See also

[BIS_fnc_bitwiseAND](../functions/BIS_fnc_bitwiseAND.md) · [BIS_fnc_bitwiseXOR](../functions/BIS_fnc_bitwiseXOR.md) · [BIS_fnc_bitwiseNOT](../functions/BIS_fnc_bitwiseNOT.md)

<sub>Source: [BI Community Wiki — BIS fnc bitwiseOR](https://community.bistudio.com/wiki/BIS_fnc_bitwiseOR) (revision 328577).</sub>
