Remove elements of a collection Version 10 (Net)
Action group: Collections
Description
The action removes the elements of the specified collection from the list.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Main list | List for processing. | Robin.Collection | Yes | |
Second list | The list of removed elements | Robin.Collection | Yes |
Special conditions of use
None.
Example of use
Task
There is a variable "Collection 1" with values:
and the variable "Collection 2" with values:
It is required to delete values in "Collection 1" that are contained in "Collection 2". Next, get the value at index "0" from "Collection 1" and display it in the dialog box.
Solution
Use the "Remove elements of a collection", "Get value by index" and "Show message" actions.
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters of the "Remove elements of a collection" action.
- Set the parameters of the "Get value by index" action.
- Set the parameters of the "Show message" action.
- Start the robot using the "Start" button in the top panel.
Result
The robot completed successfully.
The items in "Collection 2" have been deleted from "Collection 1". The remaining value in "Collection 1" is displayed in the dialog box.
Обзор
Инструменты контента