Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
DictionaryDictionary for processing.Robin.Dictionary
Yes
Results
ResultA variable containing a collection of all the dictionary keys.Robin.Collection

Special conditions of use

...

Example of use  

Task

There is a variable “Dictionary” "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 

Solution

Use the “Get keys”, “Get length”, and “Message” "Get keys", "Get length", and "Message" actions. 

Implementation

Create a “Collection” "Collection" variable that will be used as the result of the “Get keys” "Get keys" action. 

  1. Move the “Get keys” "Get keys" action to the workspace and set its parameters
  2. Create a numeric variable “Sum "Sum of keys” keys" to be used as the result of the “Get length” "Get length" action. 
  3. Move the “Get length” "Get length" action to the workspace and set its parameters 
  4. Move the “Message” "Message" action to the workspace and set its parameters 
  5. Launch the robot using the “Start” "Start" button in the top panel 

Result 

...