Slice List
Creates a slice of the list from start up to, but not including, end
Description
Creates a slice of the list from start up to, but not including, end.
Example:
-
inputs
- source = [
{ "user": "barney", "age": 36, "active": true },
{ "user": "fred", "age": 40, "active": false },
{ "user": "pebbles", "age": 24, "active": true }
,{ "user": "travis", "age": 24, "active": true }
]- start =
0
- end =
1
- source = [
-
outputs
- result = [
{ "user": "barney", "age": 36, "active": true},
- result = [
Inputs
- Source (List): The collection to inspect. Could be in the form of List, Array and QueryResult
- Start (Number): The start position.
- End (Number): The end position. If the value is null, list size will be used. If the value is "-1", it will take the full list but the last object
Outputs
- Result (List): The slice of array
- Error Flow (Error Flow): Triggered by providing unexpected type of the source