First In List
Uncontrolled node
Overview
Get the first item in a list.
Return the first item from a list, keeping its original type. An item can be text, a number, an object or another list.
This node is evaluated when another node needs its output. It has no run or done event.
Inputs
| Input | Type | Description |
|---|---|---|
| list | List | The list to read. |
Outputs
| Output | Type | Description |
|---|---|---|
| output | Data | The first item, or null when the list is empty or the input is not a list. |
Example
Connect a Data node containing ["apple", "banana", "cherry"] to list. The output is "apple".
For a list of records, the output is the complete record. Connect it to Get Value to read a field such as name.
The node uses the list’s existing order; it does not determine which item is oldest. Use Sort List first when order matters. A null result can also be an actual item in the list; use Length if you need to distinguish an empty list.