Inspect the next queue or stack value and detect an empty list.
When to use
Inspect the next queue or stack value and detect an empty list.
Inputs
list— List:list; required; supported workflow value forlist.
Outputs
- Item (
any): deterministicresultoutput. - Found (
boolean): deterministicfoundoutput.
Behavior and boundaries
Queue mode reads the first item; Stack mode reads the last. Neither mode removes anything. Empty lists return null and Found false.
These operations do not change the original input. Unsupported, circular, invalid, or excessively large values stop the workflow with a clear message.
Example
List [1,2,3] returns 1 in Queue mode and 3 in Stack mode.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
side | Next item | toggle | first | options: Queue first item (first), Stack last item (last) |
Failure cases
Execution stops with an actionable Nodestly error when a required connector is missing, a value has the wrong type or shape, a configured index/mode is unsupported, or the result would exceed collection limits.
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
