Arma 3 Scripting

Function in Bitwise

BIS_fnc_bitwiseOR

Also available as Markdown and JSON, or read the original wiki page.

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

[num1, num2] call BIS_fnc_bitwiseOR

Parameters:

Returns: Number - decimal number

Examples

Example 1

[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 · BIS_fnc_bitwiseXOR · BIS_fnc_bitwiseNOT