Add Item to List
Command description
Adds an item at the beginning, end, or a specified position in a list.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| List Object | list | List to modify, such as a similar-element list or webpage list |
| Data | PythonExpression | Data to be added |
| Insertion Position | enum | Beginning, End, Specified Position |
| Position Index | int or str | Zero-based insertion position. Required when Insertion Position is Specified Position; negative positions are supported |
Command Output Parameters
None
Example
Add an item at a specified position in a list: