Arma 3 Scripting

BIS_fnc_areEqualNotNil

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Compares all elements of passed array between each other and returns true is all are defined and identical.

Very fast, different from BIS_fnc_areEqual in that nil values will not be considered equal to each other.

Syntax

[anything1, anything2, …] call BIS_fnc_areEqualNotNil

Parameters:

Returns: Boolean

Examples

Example 1

[[1, 2, [3, [4, 5]]],    [1, 2, [3, [4, 5]]]]    call BIS_fnc_areEqualNotNil; // true
[[1, 2, [3, [4, nil]]],    [1, 2, [3, [4, nil]]]]    call BIS_fnc_areEqualNotNil; // false

Example 2

[nil, nil] call BIS_fnc_areEqualNotNil; // false

See also

isEqualTo · BIS_fnc_areEqual