BIS fnc arrayCompare: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[[^ ]+\] (call|spawn) ('''|\[\[)BI(N|S)_fnc_[a-zA-Z0-9_]+('''|\]\]));? \| *p1 *=" to " |s1=$1 |p1=") |
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
||
Line 15: | Line 15: | ||
|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.}} |
Revision as of 20:38, 13 June 2021
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:
_array1 = [0,1,2]; _array2 = [0,1,2]; [_array1, _array2] call BIS_fnc_arrayCompare; // returns true
Additional Information
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