{"name":"BIS_fnc_findInPairs","title":"BIS fnc findInPairs","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_findInPairs","revid":348806,"updated":"2023-11-08T14:37:38Z","groups":["Arrays"],"status":"ok","games":{"arma3":"0.76"},"since":"arma3 0.76","arma3_since":"0.76","description":"Searches the associative array for the first occurance of the key string and returns its index. Seach is not case-sensitive.","syntaxes":[{"syntax":"[array, key] call BIS_fnc_findInPairs","params":[{"name":"array","type":"Array","description":"array to search through","type_expr":"Array"},{"name":"key","type":"String","description":"key to search for","type_expr":"String"}],"returns":{"type":"Number","type_expr":"Number","description":"index of first occurence"}}],"examples":[{"code":["[[[\"apple\",3],[\"pear\",2]],\"apple\"] call BIS_fnc_findInPairs; // Returns 0"]}],"see_also":["find","findIf","BIS_fnc_getFromPairs","BIS_fnc_addToPairs","BIS_fnc_removeFromPairs","BIS_fnc_setToPairs"]}