{"name":"BIS_fnc_findAllNestedElements","title":"BIS fnc findAllNestedElements","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_findAllNestedElements","revid":327526,"updated":"2022-07-12T22:33:34Z","groups":["Arrays"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Returns array of paths to all matching elements in deeply nested array, similar to BIS_fnc_findNestedElement but with all occurences.","syntaxes":[{"syntax":"[array, query] call BIS_fnc_findAllNestedElements","params":[{"name":"array","type":"Array","description":"array to explore","type_expr":"Array"},{"name":"query","type":"Anything","description":"wanted item","type_expr":"Anything"}],"returns":{"type":"Array of Array of Numbers","type_expr":"Array<Array<Number>>","description":"path to the first occurence of query","text":"Array of Array of Numbers - path to the first occurence of *query*"}}],"examples":[{"code":["private _array = [[1, 2, 3], [[1, 2, 3], 1, 2, 3]];\n_result = [_array, 2] call BIS_fnc_findAllNestedElements; // returns [[0, 1], [1, 0, 1], [1, 2]]"]}],"see_also":["BIS_fnc_findNestedElement","BIS_fnc_removeNestedElement","BIS_fnc_returnNestedElement","BIS_fnc_setNestedElement"]}