get: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Create thing)
 
mNo edit summary
Line 18: Line 18:


|x1= <code>[[private]] _myValue = _myHashMap [[get]] "a";</code>
|x1= <code>[[private]] _myValue = _myHashMap [[get]] "a";</code>
|x2= <code></code>


|seealso= [[HashMap]] [[getOrDefault]]
|seealso= [[HashMap]] [[getOrDefault]]
}}
}}

Revision as of 10:37, 15 December 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.01|2.01]]
Hover & click on the images for description

Description

Description:
Retrieves a value out of a HashMap after looking it up by its key.
Groups:
HashMap

Syntax

Syntax:
hashMap get key
Parameters:
hashMap : HashMap
key: HashMapKey
Return Value:
Anything

Examples

Example 1:
private _myValue = _myHashMap get "a";

Additional Information

See also:
HashMap getOrDefault

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

[[Category:Introduced with arma3dev version 2.01]][[ Category: arma3dev: New Scripting Commands | GET]][[ Category: arma3dev: Scripting Commands | GET]]