BIS fnc findInPairs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI released sooner than 1.00, added 0.76. Source http://dev.arma3.com/post/spotrep-00009 (Typo:BIS_fnc_finInPairs))
m (template:command argument fix)
Line 24: Line 24:
*/
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_findInPairs]]; --> |= Syntax
| <!-- [] call [[BIS_fnc_findInPairs]]; --> |SYNTAX=


|p1= |= Parameter 1
|p1= |= Parameter 1


| |= Return value
| |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 37: Line 37:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |SEEALSO=


}}
}}

Revision as of 12:28, 7 April 2019


Hover & click on the images for description

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)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

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

Notes

Bottom Section