Get Dictionary Keys
Get Dictionary Keys
Section titled “Get Dictionary Keys”Type: dict-keys · Package: Collections Activities v1.0.0 · Output: List
Gets all keys of a dictionary as a list. Useful for looping through all entries with a For Each.
How it works
Section titled “How it works”Returns the list of keys from dict in outputVariable.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
dict | expression | The dictionary. |
outputVariable | nombre de variable | Variable where to save the list of keys. |
Example
Section titled “Example”Recorrer cada par del diccionario:
Get Dictionary Keys dict = = totalesPorCiudad outputVariable = ciudadesFor Each items = = ciudades itemVariable = ciudad └─ activities: Get Dictionary Value dict = = totalesPorCiudad key = = ciudad outputVariable = total Log message = = ciudad + ": " + totalRelated activities
Section titled “Related activities”- Get Dictionary Value — read the value of each key.
- Dictionary Count — how many entries there are.