Slice

Choose a subset of a list using start and end points.

Input

Field Definition Type Required

list

The list that you want to slice.

List

TRUE

start

The position of the first item to include in the new list. Any list begins at position 0.

Number

TRUE

end

The position where the slice ends. The item in this position isn't included in the new list.

Number

TRUE

Output

Field Definition Type

slice

The new list.

Set the type of this output list to be the same type as the input list.

List

Example

If the list is the list of numbers: [90,91,92,93,94,95] and start is 1 and end is 4 then slice is the list of numbers: [91,92,93]

Related topics

Lists

Functions in Workflows

Workflow elements