Skip to content

Commit

Permalink
Merge pull request #1382 from CBATeam/hashDocumentGetDefault
Browse files Browse the repository at this point in the history
add Documentation for default parameter in hashGet
  • Loading branch information
commy2 authored Dec 16, 2020
2 parents 4ef809c + 4870fa7 commit a35013f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/hashes/fnc_hashCreate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Examples:
_animalCounts = [_pairs, 0] call CBA_fnc_hashCreate;
[_animalCounts, "frog"] call CBA_fnc_hashGet; // => 12
[_animalCounts, "monkey"] call CBA_fnc_hashGet; // => 0
[_animalCounts, "monkey", 25] call CBA_fnc_hashGet; // => 25
(end code)
Author:
Expand Down
1 change: 1 addition & 0 deletions addons/hashes/fnc_hashGet.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Description:
Parameters:
_hash - Hash to look for key in [Array which is a Hash structure]
_key - Key to search for in Hash [Any]
_defaultOverwrite - Default Overwrite if key is not defined [Any]
Returns:
Value associated with the key, or Hash default value if key missing [Any]
Expand Down

0 comments on commit a35013f

Please sign in to comment.