Get Dictionary Value
Get Dictionary Value
Section titled “Get Dictionary Value”Type: dict-get · Package: Collections Activities v1.0.0 · Output: object
Gets the value associated with a key in a dictionary and stores it in a variable.
How it works
Section titled “How it works”Looks up the key key in dict and saves its value in outputVariable. If the key does not exist, it returns null.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
dict | expression | The dictionary. |
key | expression | The key to look for. |
outputVariable | nombre de variable | Variable where to store the value. |
Example
Section titled “Example”Get Dictionary Value dict = = cliente key = "nombre" outputVariable = nombreLog message = = "Cliente: " + str(nombre)Related activities
Section titled “Related activities”- Set Dictionary Value — assign a value.
- Dictionary Contains Key — check if the key exists.