BIS fnc arrayFindDeep: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *V([a-z ])" to "$1 - v$2") |
||
Line 21: | Line 21: | ||
|p1= array: [[Array]] - array to be searched | |p1= array: [[Array]] - array to be searched | ||
|p2= value [[Anything]] - | |p2= value [[Anything]] - value to be searched for | ||
|r1= [[Array]] - returns array with index of found element, if it was not found it returns -1 | |r1= [[Array]] - returns array with index of found element, if it was not found it returns -1 |
Revision as of 16:53, 8 November 2023
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:
Additional Information
- See also:
- BIS_fnc_addToPairs find select BIS_fnc_removeIndex
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