BIS fnc arrayCompare: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
{{Function|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2 | | | arma2 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | This function checks if two arrays are containing the same elements in the same order. | ||
{{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.}}|Description= | |||
____________________________________________________________________________________________ | |||
| [array1, array2] call [[BIS_fnc_arrayCompare]] |Syntax= | |||
| | |p1= array1: [[Array]] |Parameter 1= | ||
| | |p2= array2: [[Array]] |Parameter 2= | ||
| | | | [[Boolean]] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>_array1 = [0,1,2]; | ||
_array2 = [0,1,2]; | |||
[_array1, _array2] [[call]] [[BIS_fnc_arrayCompare]]; {{codecomment|// returns [[true]]}}</code> |Example 1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[BIS_fnc_areEqual]], [[BIS_fnc_areEqualNotNil]], [[isEqualTo]] |See also= | ||
}} | }} | ||
Line 46: | Line 37: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:arrayCompare}}]] | |||
[[Category:Function Group: Arrays|{{uc:arrayCompare}}]] | [[Category:Function Group: Arrays|{{uc:arrayCompare}}]] | ||
[[Category:{{Name|arma2}}: Functions|{{uc:arrayCompare}}]] | [[Category:{{Name|arma2}}: Functions|{{uc:arrayCompare}}]] | ||
[[Category:{{Name|arma2oa}}: Functions|{{uc:arrayCompare}}]] | [[Category:{{Name|arma2oa}}: Functions|{{uc:arrayCompare}}]] | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:arrayCompare}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:arrayCompare}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:arrayCompare}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:arrayCompare}}]] |
Revision as of 00:38, 6 June 2018
Description
- Description:
- This function checks if two arrays are containing the same elements in the same order.
- Execution:
- call
- Groups:
- Uncategorised
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