BIS_fnc_arrayCompare

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
This function checks if two arrays are containing the same elements in the same order.
This function is deprecated in Arma 2 as it fails with certain data types; see BIS_fnc_areEqual for Arma 2.
Arma 3 logo black.png
Use isEqualTo instead.

Syntax

Syntax:
[array1, array2] call BIS_fnc_arrayCompare
Parameters:
array1: Array
array2: Array
Return Value:
Boolean

Examples

Example 1:
_array1 = [0,1,2]; _array2 = [0,1,2]; [_array1, _array2] call BIS_fnc_arrayCompare; // returns true

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_areEqualBIS_fnc_areEqualNotNilisEqualTo

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section