Skip to content

Set Dictionary Value

Type: dict-set  ·  Package: Collections Activities v1.0.0

Assigns or updates a key→value pair in a dictionary. If the key does not exist, it creates it; if it already exists, replaces its value.

It puts value under the key key in the dict dictionary.

ParameterEditorDescription
dictexpressionThe dictionary.
keyexpressionThe key (text).
valueexpressionThe value to assign.
Create Dictionary outputVariable = totalesPorCiudad
For Each items = = ventas itemVariable = v
└─ activities:
Set Dictionary Value dict = = totalesPorCiudad key = = str(v["Ciudad"]) value = = num(v["Total"])