Skip to main content

Last In List

Uncontrolled node

Overview

The Last In List node is used to extract the last value from a list. This is useful when you need to access the most recent item in a sequence, such as the last step in a process, the most recent user action, or the final value after a transformation.

This node streamlines workflows where only the final item from a collection is needed, removing the need to manually calculate list length or write custom logic.

Inputs

InputTypeDescriptionDefault
ListListA list of items of any type (e.g., text, number, boolean, dictionary)-

Outputs

OutputTypeDescription
OutputAnyThe last item in the provided list

Panel Controls

The Last In List node does not require any configuration in the panel. It simply retrieves the last item from the input list when triggered.

If the list is empty, the output will be null.

Tip

Use the Last In List node with For Each, Read CSV, or Filter List nodes when you need to select the last item after data processing.