Use a list as a queue by returning its first item and remaining items.
When to use
Use a list as a queue by returning its first item and remaining items.
Inputs
list— List:list; required; supported workflow value forlist.
Outputs
- Remaining List (
list): deterministicresultoutput. - Item (
any): deterministicitemoutput. - Found (
boolean): deterministicfoundoutput.
Behavior and boundaries
A nonempty list returns its first item and all following values. An empty list returns an empty Remaining List, null Item, 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] produces Remaining List [2, 3], Item 1, and Found true.
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.
