---
name: "BIS_fnc_bitwiseXOR"
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_bitwiseXOR
revid: 328591
updated: 2022-07-13T17:02:28Z
---

# BIS_fnc_bitwiseXOR

*Function · Bitwise · Arma 3 v1.66*

## Description

Performs bitwise XOR 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_bitwiseXOR
```

**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
[1 + 4 + 16, 1] call BIS_fnc_bitwiseXOR; // 20
[1 + 2 + 32, 4 + 8] call BIS_fnc_bitwiseXOR; // 47
[16 + 32, 4 + 16] call BIS_fnc_bitwiseXOR; // 36
[1 + 16 + 32, 2 + 32] call BIS_fnc_bitwiseXOR; // 19
```

## See also

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

<sub>Source: [BI Community Wiki — BIS fnc bitwiseXOR](https://community.bistudio.com/wiki/BIS_fnc_bitwiseXOR) (revision 328591).</sub>
