Create collection Version 7 (Java)
Action group: Collections
Description
Creates a new empty instance of the collection.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Results | ||||
Collection | The variable to which the created collection will be written | Robin.Collection |
Special conditions of use
If an existing collection is fed into the result, it will be cleared.
Example of use
Task
Create a collection using the "Create Collection" action and add the first element "Moscow" to it.
Solution
Use the "Create collection" and "Add object" actions.
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters of the "Add object" action.
- Start the robot using the "Start" button in the top panel.
Solution
An instance of a new collection has been created and the first entry has been made to it.
Обзор
Инструменты контента