---
name: "get"
type: command
status: ok
groups: ["HashMap"]
arma3_since: "2.02"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/get
revid: 348437
updated: 2023-11-08T13:00:13Z
---

# get

*Command · HashMap · Arma 3 v2.02*

## Description

Retrieves a value out of a [HashMap](../topics/HashMap.md) after looking it up by its key.

## Syntax

```sqf
hashMap get key
```

**Parameters:**

- `hashMap`: [HashMap](../topics/HashMap.md)
- `key`: [HashMapKey](../topics/HashMapKey.md) - case sensitive key

**Returns:** [Anything](../topics/Anything.md), or [Nothing](../topics/Nothing.md) if *key* is not found

## Examples

### Example 1

```sqf
private _myValue = _myHashMap get "a";
```

## See also

[HashMap](../topics/HashMap.md) · [getOrDefault](../commands/getOrDefault.md)

<sub>Source: [BI Community Wiki — get](https://community.bistudio.com/wiki/get) (revision 348437).</sub>
