{"name":"BIS_fnc_arrayCompare","title":"BIS fnc arrayCompare","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_arrayCompare","revid":327523,"updated":"2022-07-12T22:31:18Z","groups":["Arrays"],"status":"deprecated","replaced_by":["BIS_fnc_areEqual"],"games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"This function checks if two arrays are containing the same elements in the same order.\n\n> [!IMPORTANT]\n> This function is deprecated in Arma 2 as it fails with certain data types; see BIS_fnc_areEqual for Arma 2.\n\n> [!NOTE]\n> **Arma 3:** Use isEqualTo instead.","syntaxes":[{"syntax":"[array1, array2] call BIS_fnc_arrayCompare","params":[{"name":"array1","type":"Array","type_expr":"Array"},{"name":"array2","type":"Array","type_expr":"Array"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["private _array1 = [0,1,2];\nprivate _array2 = [0,1,2];\n[_array1, _array2] call BIS_fnc_arrayCompare; // returns true"]}],"see_also":["BIS_fnc_areEqual","BIS_fnc_areEqualNotNil","isEqualTo"]}