BIS fnc arrayFindDeep: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
Line 23: Line 23:
|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 was not found it returns -1
|r1= [[Array]] - Returns array with index of found element, if it was not found it returns -1


|x1= <code>[ [1,2,3,4,5], 3 ] [[call]] [[BIS_fnc_arrayFindDeep]];//Returns [2]</code>
|x1= <code>[ [1,2,3,4,5], 3 ] [[call]] [[BIS_fnc_arrayFindDeep]];//Returns [2]</code>

Revision as of 13:20, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Arrays

Syntax

Syntax:
Syntax needed
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_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