BIS fnc arrayCompare: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2oa | ||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Arrays | |gr1= Arrays | ||
| This function checks if two arrays are containing the same elements in the same order. | |descr= This function checks if two arrays are containing the same elements in the same order. | ||
{{Feature|important|This function is deprecated in {{arma2}} as it fails with certain data types; see [[BIS_fnc_areEqual]] for {{arma2}}.}} | {{Feature|important|This function is deprecated in {{arma2}} as it fails with certain data types; see [[BIS_fnc_areEqual]] for {{arma2}}.}} | ||
{{Feature|arma3|Use [[isEqualTo]] instead.}} | {{Feature|arma3|Use [[isEqualTo]] instead.}} | ||
| [array1, array2] call [[BIS_fnc_arrayCompare]] | |s1= [array1, array2] call [[BIS_fnc_arrayCompare]] | ||
|p1= array1: [[Array]] | |p1= array1: [[Array]] | ||
Line 17: | Line 25: | ||
|p2= array2: [[Array]] | |p2= array2: [[Array]] | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf> | ||
_array2 = [0,1,2]; | private _array1 = [0,1,2]; | ||
[_array1, _array2] | private _array2 = [0,1,2]; | ||
[_array1, _array2] call BIS_fnc_arrayCompare; // returns true | |||
</sqf> | |||
|seealso= [[BIS_fnc_areEqual]] | |seealso= [[BIS_fnc_areEqual]] [[BIS_fnc_areEqualNotNil]] [[isEqualTo]] | ||
}} | }} | ||
Latest revision as of 23:31, 12 July 2022
Description
- Description:
- This function checks if two arrays are containing the same elements in the same order.
- Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- [array1, array2] call BIS_fnc_arrayCompare
- Parameters:
- array1: Array
- array2: Array
- Return Value:
- Boolean
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_areEqual BIS_fnc_areEqualNotNil isEqualTo
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