BIS_fnc_arrayFindDeep

From Bohemia Interactive Community
Revision as of 17:27, 8 November 2023 by Lou Montana (talk | contribs) (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

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

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