Contains object Version 13 (Net) 

Action group: Collections


Description

The action determines if the dictionary contains the value.

Action icon


Parameters

Input parameters

ParameterDescription
CollectionCollection to be checked. 
ObjectObject to be checked. 

Output parameters

The output is a boolean type variable the value of which is true if the object is in the collection, otherwise - false.

Settings

Property

Description

Type

Filling example

Mandatory

Parameters

Collection

Collection to be checked.

Robin.Collection


yes

Object

Object to be checked.

Robin.Object


yes

Results

Result

A boolean type variable the value of which is true if the object is in the collection, otherwise - false.

Robin.Boolean

true


Special conditions of use

None.

Example of use

Task

In the "Collection 1" there are values = Masha, Yulya, Petya. Check if the collection contains name "Petya".

Solution

Set the "Contains object" action.

Implementation

  1. Create a Collection type variable with set values and save the changes.
  2.  

  3. Move the "Contains object" action to the workspace and set its parameters.
  4. Click "Start" in the top panel to start the robot.

Result

The program robot completed successfully. The output of the action is true - the specified value is in the collection.


 

  • Нет меток