BIS fnc arrayCompare: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (Text replacement - "|Game version=" to "|Game version= |gr1= Arrays |GROUP1")
Line 5: Line 5:


|1.00|Game version=
|1.00|Game version=
|gr1= Arrays |GROUP1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 10:40, 6 October 2020

Hover & click on the images for description

Description

Description:
GROUP1 ____________________________________________________________________________________________
Execution:
call
Groups:
Arrays

Syntax

Syntax:
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
Use isEqualTo instead.
Parameters:
array1: Array
array2: Array
Return Value:
[array1, array2] call BIS_fnc_arrayCompare

Examples

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

Additional Information

See also:
Boolean

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section