GET
Gets the associated value from an object for the specified key.
Syntax
=GET(obj, key)
Arguments
Argument | Type | Description |
---|---|---|
obj | Object | The object to use. |
key | String | The key to use within the object, will be converted to a string type if the value given is a non-string |
Examples
In these examples, the shape data property "Object" is an object with the following key-value pairs:
{ "A": 1, "B": 2, "C": 3, "D": 4, "E": 5, }
=GET(@Object, "A")
→1
Get the value associated with the key "A" from the object stored in the shape data property named "Object".
=GET(@Object, "D")
→4
Get the value associated with the key "D" from the object stored in the shape data property named "Object"
Updated 10 months ago