Replace value Version 11 (Net)
Action group: Collections
Description
Replaces the value for the selected key in the dictionary
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Dictionary | Dictionary for processing. | Robin.Dictionary | Yes | |
Key | Key in the dictionary | Robin.String | Yes | |
New value | New dictionary value by the specified key | Robin.Object | Yes |
Special conditions of use
If nothing is specified in the "New value" parameter, the value of the key will change to empty.
If a non-existent key is specified in the "Key" parameter, an error will be caused.
Example of use
Task
There is a variable "Dictionary" with values:
- Moscow
- Tokyo
It is necessary to change the value of key "1" to "Saint-Petersburg".
Solution
Use the "Replace value" action.
Implementation
- Move the "Replace value" action to the workspace.
- Set the parameters of the "Replace value" action.
- Click on the "Start" button in the top panel.
Result
The value with the key "1" has been replaced by "Saint-Petersburg".
Обзор
Инструменты контента