Action Data
List Operations
Performs various operations on lists (arrays) including insert, append, pop, delete, slice, reverse, sort, join, and more.
Node IDListOperationsAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Operation operation | enum | Yes | append | The operation to perform on the list. |
Index index | integer | No | 0 | Index for operations like 'get', 'insert', 'delete'. Can be negative to count from end (-1 = last item). |
Value value | textarea | No | — | Value to insert, append, search for, or create a list from. Can be a JSON value or string. Can be set by a data connection. |
Start Index (Slice) startIndex | integer | No | 0 | Start index for 'slice' operation. Negative indices count from end. |
End Index (Slice) endIndex | integer | No | -1 | End index for 'slice' operation (exclusive). -1 means end of list. |
Sort Order sortOrder | enum | No | ascending | Sort order for 'sort' operation. |
Delimiter delimiter | string | No | , | String used to separate items in the 'join' operation (e.g., "," or " "). |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An execution signal that carries the input list. Expects a data object with a list value. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Result output0 | object | get:item/insert:list/append:list/prepend:list/pop:list&popped_item/popfront:list&popped_item/delete:list/slice:list/reverse:list/sort:list/unique:list/length:length/contains:contains/indexof:index/concat:list/clear:list/create:list/join:string/parse:list | The result of the operation (modified list, extracted item, boolean, string, or number depending on operation). |