BIS fnc findInPairs: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=") |
m (Text replacement - " it's" to " it is") |
||
Line 10: | Line 10: | ||
Description: | Description: | ||
Searches the associative array for the 1st occurance of the key string and returns it | Searches the associative array for the 1st occurance of the key string and returns it is index. | ||
Syntax: | Syntax: |
Revision as of 17:49, 7 September 2020
Description
- Description:
/* Description: Searches the associative array for the 1st occurance of the key string and returns it is 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:
- BIS_fnc_addToPairsBIS_fnc_setToPairs
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