BIS fnc arrayFindDeep: Difference between revisions
Jump to navigation
Jump to search
m (pf) |
Lou Montana (talk | contribs) m (Text replacement - "|= Execution " to "|Execution= ") |
||
Line 20: | Line 20: | ||
<!--- | <!--- | ||
|exec= spawn |= | |exec= spawn |Execution= | ||
---> | ---> | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 23:34, 19 December 2019
Description
- Description:
- Searches an array for a specific value and returns its index.
- Execution:
- call
- Groups:
- Uncategorised
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 wasn't 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