|Description:||Searches for an element in an array and returns the path to the first occurrence. It is meant to be used with nested arrays, as it searches sub-arrays in the array. If the element is not in the array, the functions returns an empty array.|
|Syntax:||[array,element] call fn_vbs_arrayFindDeep|
|Return Value:||Array - Path to the element in the array, or  if the element is not in the array.|
When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.
_element = [[1,2,[3,4],3,2,1],3] call fn_vbs_arrayFindDeep //returns [2,0] _element = [["a",2,player,false],false] call fn_vbs_arrayFindDeep //returns  _element = [["a",2,player,false],true] call fn_vbs_arrayFindDeep //returns  _element = [[1,2,3,[4,["a",["b","c"]],5],6],["b","c"]] call fn_vbs_arrayFindDeep //returns [3,1,1]
- This function was included in previous versions; however, before v1.30 it was broken and would throw a syntax error.