Dictionary Count
Dictionary Count
Section titled “Dictionary Count”Type: dict-count · Package: Collections Activities v1.0.0 · Output: int
Gets how many key-value pairs a dictionary has and stores it in a variable.
How it works
Section titled “How it works”Counts the dict entries and stores the number in outputVariable.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
dict | expression | The dictionary. |
outputVariable | nombre de variable | Variable where to save the count. |
Example
Section titled “Example”Dictionary Count dict = = totales outputVariable = nLog message = = "Hay " + n + " categorías"Related activities
Section titled “Related activities”- Get Dictionary Keys — list the keys.
- Get Dictionary Value — read a value.