Set value by index Version 11 (Net)
Action group: Collections
Description
The action replaces the value in the list by index.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
List | List for processing. | Robin.Collection | Yes | |
Index | Index in the list | Robin.Numeric | Yes | |
Value | The value, that will be added in the list by the specified index | Robin.Object | Yes |
Special conditions of use
None.
Example of use
Task
There is a variable "Collection 1" with the values:
Replace the value of "China" with "Spain". Output the result in the dialog box.
Solution
Use the actions "Set value by index", "Get value by index" and "Show message".
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters of the "Set value by index" 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 value "Spain" is displayed in the dialog box. The replacement of the value at index "0" was successful.
Обзор
Инструменты контента