{"name":"BIS_fnc_areEqual","operator":null,"title":"BIS fnc areEqual","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_areEqual","revid":363456,"updated":"2024-03-30T21:12:17Z","groups":["Variables"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.\n\n> [!NOTE]\n> **Arma 3:** In Arma 3, see isEqualTo.\n\nNote:\n- This function is an improvement over the == operator because it can handle any data type in any combination.\n- For arrays, it returns true if both arrays hold the same elements in the same order.\n- If both values are undefined / nil / null, then this function will return true.","syntaxes":[{"syntax":"[anything1, anything2, ..., anythingN] call BIS_fnc_areEqual","since":null,"effect":null,"exec":null,"params":[{"name":"anythingM","type":"Anything","optional":false,"default":null,"description":"any data type","types":["Anything"],"since":null,"text":"anythingM: Anything - any data type"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\n[0, \"0\"]        call BIS_fnc_areEqual; // false\n[0, 1 + 1 - 2]    call BIS_fnc_areEqual; // true\n[str 50, \"50\"]    call BIS_fnc_areEqual; // true\n```","code":["[0, \"0\"]\t\tcall BIS_fnc_areEqual; // false\n[0, 1 + 1 - 2]\tcall BIS_fnc_areEqual; // true\n[str 50, \"50\"]\tcall BIS_fnc_areEqual; // true"]}],"multiplayer":null,"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.","aliases":[],"see_also":["isEqualTo","BIS_fnc_areEqualNotNil"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Variables","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}