Arma 3 Scripting

BIS_fnc_bitwiseOR

  • Arma 3 v1.66

Function · Markdown · JSON · 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