Skip to main content

Slice List

Uncontrolled node

Overview

The Slice List node extracts a portion of a list based on start and end index values.

It behaves similarly to JavaScript's native .slice(start, end) function:

  • The start index is inclusive.
  • The end index is exclusive.

Use this node to extract segments, paginate data, or focus on a range of values from any list.

Inputs

InputTypeDescriptionDefault
ListListThe list to slice-
StartNumberIndex to start slicing from (inclusive)0
EndNumberIndex to stop slicing at (exclusive)List length

Outputs

OutputTypeDescription
OutputListThe sliced portion of the original list

Panel Controls

No additional side-panel controls. Slicing behavior is controlled entirely by the Start and End inputs.

  • If Start is missing, invalid, or not a number, it defaults to 0.
  • If End is missing, empty, or invalid, it defaults to the full length of the list.
  • Both values are automatically rounded down using Math.floor.

Example 1: Standard Slice

List:

["a", "b", "c", "d", "e"]

Start:

1

End:

4

Output:

["b", "c", "d"]

Tip

This node does not treat negative numbers as Python-style reverse indexing. A start of -2 will begin slicing from the end only if used directly, per JavaScript behavior.