get: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
m (description)
Line 12: Line 12:
|p1= hashMap : [[HashMap]]
|p1= hashMap : [[HashMap]]


|p2= key: [[HashMapKey]]
|p2= key: [[HashMapKey]] - Case sensitive key


|r1= [[Anything]]
|r1= [[Anything]]

Revision as of 01:35, 22 June 2021

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 - Case sensitive key
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