BIS fnc arrayFindDeep: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |GROUP1" to "|GROUP1=")
m (Text replacement - "\[\[Category\:Function Group\: Arrays(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Line 41: Line 41:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Arrays|{{uc:arrayFindDeep}}]]
 
[[Category:Functions|{{uc:arrayFindDeep}}]]
[[Category:Functions|{{uc:arrayFindDeep}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:arrayFindDeep}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:arrayFindDeep}}]]

Revision as of 12:00, 12 October 2020

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 wasn't 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_addToPairsfindselectBIS_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


Notes

Bottom Section