Project

General

Profile

Slice

Description

Cuts Source array form Start index to End index (not included)

Input/Output

Source array : array <= Source
Start index : value (number) <= Source or User
End index : value (number) <= Source or User

Output : array

Usage

  1. Connect a source to the operator
  2. Drag an array from the source tree and drop it into input field Source array
  3. If you want to manually add indexes, type Start index and End index, then click on OK; otherwise, click on OK
  4. Connect a source to the operator
  5. Drag a numerical value from the source tree and drop it into input field Start index
  6. Click on OK
  7. Repeat 4-6 for End index

Example

Source array = [{"key1":"value1", "key2":10}, {"key1":"value2", "key2":12}, {"key1":"value3", "key2":13}]
Start index = 0
End index = 2

Output = [{"key1":"value1", "key2":10}, {"key1":"value2", "key2":12}]