{"name":"get","operator":null,"title":"get","type":"command","url":"https://community.bistudio.com/wiki/get","revid":348437,"updated":"2023-11-08T13:00:13Z","groups":["HashMap"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.02"}],"since":{"game":"arma3","name":"Arma 3","version":"2.02"},"arma3_since":"2.02","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Retrieves a value out of a HashMap after looking it up by its key.","syntaxes":[{"syntax":"hashMap get key","since":null,"effect":null,"exec":null,"params":[{"name":"hashMap","type":"HashMap","optional":false,"default":null,"description":null,"types":["HashMap"],"since":null,"text":"hashMap: HashMap"},{"name":"key","type":"HashMapKey","optional":false,"default":null,"description":"case sensitive key","types":["HashMapKey"],"since":null,"text":"key: HashMapKey - case sensitive key"}],"returns":{"type":"Anything, or Nothing if key is not found","types":["Anything","Nothing"],"description":null,"text":"Anything, or Nothing if *key* is not found"},"form":"binary","operator":null,"left":{"text":"hashMap","types":["HashMap"]},"right":{"text":"key","types":["HashMapKey"]}}],"examples":[{"text":"```sqf\nprivate _myValue = _myHashMap get \"a\";\n```","code":["private _myValue = _myHashMap get \"a\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["HashMap","getOrDefault"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: HashMap","Introduced with Arma 3 version 2.02","Scripting Commands"]}