BIS fnc arrayFindDeep: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects( \("local" or "gl...) |
m (Text replacement - "wasn't" to "was not") |
||
Line 16: | Line 16: | ||
|p2= value [[Anything]] - Value to be searched for | |p2= value [[Anything]] - Value to be searched for | ||
| [[Array]] - Returns array with index of found element, if it | | [[Array]] - Returns array with index of found element, if it was not found it returns -1 | ||
<!--- | <!--- |
Revision as of 09:17, 18 January 2021
Description
- Description:
- Searches an array for a specific value and returns its index.
- Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- [array,value] call BIS_fnc_arrayFindDeep
- Parameters:
- array: Array - Array to be searched
- value Anything - Value to be searched for
- Return Value:
- Array - Returns array with index of found element, if it was not found it returns -1
Examples
- Example 1:
[ [1,2,3,4,5], 3 ] call BIS_fnc_arrayFindDeep;//Returns [2]
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