Contains value Version 9 (java)

Action group: Collections


Description

The action checks if the value is contained in the dictionary

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
DictionaryDictionary to checkRobin.Dictionary
Yes
ValueValue from the dictionaryRobin.Object
No
Results
ResultA boolean variable whose value is true if the object is contained in the dictionary; otherwise, it is false.Robin.Booleantrue

Special conditions of use

None.

Example of use

Task

There is a variable "Dictionary" with values: 1 - Moscow, 2 - Tokyo. Set up a check for the presence of the value Barcelona in the dictionary and write the result to the boolean variable. 

Solution

Use the action "Contains value". 

Implementation 

  1. Create a variable "Boolean variable" to record the result of the "Contains value" action into it. 
  2. Move the "Contains value" action to the workspace and set the action parameters
  3. Launch the robot using the "Start" button in the top panel. 

Result 

The desired meaning was not found in the dictionary.

 

  • Нет меток