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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Dictionary | Dictionary to check | Robin.Dictionary | Yes | |
Value | Value from the dictionary | Robin.Object | No | |
Results | ||||
Result | A boolean variable whose value is true if the object is contained in the dictionary; otherwise, it is false. | Robin.Boolean | true |
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
- Create a variable "Boolean variable" to record the result of the "Contains value" action into it.
- Move the "Contains value" action to the workspace and set the action parameters
- Launch the robot using the "Start" button in the top panel.
Result
The desired meaning was not found in the dictionary.
Обзор
Инструменты контента