Action group: Collections
Gets a collection of keys that have the specified value
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Dictionary | Dictionary for processing. | Robin.Dictionary | Yes | |
Results | ||||
Result | A variable containing a collection of all the dictionary keys. | Robin.Collection |
None.
There is a variable "Dictionary" with values: 1 - Moscow, 2 - Tokyo. It is necessary to get a collection of keys and output the result (sum) in the dialog box
Use the "Get keys", "Get length", and "Message" actions.
Create a "Collection" variable that will be used as the result of the "Get keys" action.
The sum of dictionary keys = 2 is displayed in the dialog box