Arma 3 Scripting

BIS_fnc_findInPairs

  • Arma 3 v0.76

Function · Markdown · JSON · original wiki page

Description

Searches the associative array for the first occurance of the key string and returns its index. Seach is not case-sensitive.

Syntax

[array, key] call BIS_fnc_findInPairs

Parameters:

Returns: Number - index of first occurence

Examples

Example 1

[[["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