Benargee
BIS_fnc_findInPairs renamed to BIS_fnc_getFromPairs and now supports all variable types Source
Results appear below as you type; use the arrow keys to move through them.
Searches the associative array for the 1st occurance of the key string and returns the value associated with it. Search is not case sensitiv.
[array, key, defaultValue] call BIS_fnc_getFromPairs
Parameters:
array: Array - array to search throughkey: String - key to search fordefaultValue: Anything - (Optional, default nil) default return value if no match was foundReturns: Anything - value associated with the key.
[[["apple",3],["pear","test"]],"pear"] call BIS_fnc_getFromPairs; // Returns "test"
[[["apple",3],["pear",6]],"pear"] call BIS_fnc_getFromPairs; // Returns "6"
find · findIf · BIS_fnc_findInPairs · BIS_fnc_addToPairs · BIS_fnc_removeFromPairs · BIS_fnc_setToPairs
BIS_fnc_findInPairs renamed to BIS_fnc_getFromPairs and now supports all variable types Source