Arma 3 Scripting

BIS_fnc_areEqual

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

Description

This function returns true if all of the passed data elements are of the same type and value. One or more elements can be passed.

Note

Arma 3: In Arma 3, see isEqualTo.

Note:

Syntax

[anything1, anything2, ..., anythingN] call BIS_fnc_areEqual

Parameters:

Returns: Boolean

Examples

Example 1

[0, "0"]        call BIS_fnc_areEqual; // false
[0, 1 + 1 - 2]    call BIS_fnc_areEqual; // true
[str 50, "50"]    call BIS_fnc_areEqual; // true

Problems

EXTREMELY large strings (> 4k) or compiled code (from a file, for example) might not be properly compared if they are only different near the end of the file.

See also

isEqualTo · BIS_fnc_areEqualNotNil