BIS_fnc_findInPairs

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 0.76
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.76

Description

Description:
/*

	Description:
	Searches the associative array for the 1st occurance of the key string and returns it's index.

	Syntax:
	_index:number = [_associativeArray:array,_key:string] call BIS_fnc_findInPairs;

	Example:
	0 = [[["apple",3],["pear",2]],"apple"] call BIS_fnc_findInPairs;

	Returns:
	* if found: index (starting from 0)
	* if not found: -1
*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Example 1:
Example needed
See also:
BIS_fnc_addToPairsBIS_fnc_setToPairs

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section