DRAGOPS
DRAGOPS
DocumentationNode libraryArray

Array

Collection operations — length, access, map, filter, sort, group, zip, and more.

Array nodes operate on ordered collections of values. They cover the full range of collection operations — accessing elements, transforming collections, searching, grouping, and building new arrays.

All Array nodes are pure (blue header, no execution pins). For iterating over arrays with side effects, use the For Each flow control node instead.


Array Length

Get the number of elements in an array.

PinDirectionTypeDescription
ArrayInputArrayThe array to measure
LengthOutputIntegerNumber of elements

Pure. Use Array Length to check if a collection is empty or to determine loop bounds.


Array Get

Get an element by index (zero-based).

PinDirectionTypeDescription
ArrayInputArrayThe source array
IndexInputIntegerPosition to read (default: 0)
ItemOutputAnyThe element at the specified index

Pure. Use Array Get to access specific positions — the first result, a known offset, or a computed index.


Array First

Get the first element of an array.

PinDirectionTypeDescription
ArrayInputArrayThe source array
ItemOutputAnyThe first element

Pure. Use Array First to get the top result from a sorted or filtered collection.


Array Last

Get the last element of an array.

PinDirectionTypeDescription
ArrayInputArrayThe source array
ItemOutputAnyThe last element

Pure. Use Array Last to get the most recent entry in a chronological list.


Array Push

Append an item to the end of an array. Returns a new array.

PinDirectionTypeDescription
ArrayInputArrayThe source array
ItemInputAnyThe item to append
ResultOutputArrayNew array with the item added

Pure. Use Array Push to build arrays incrementally — collecting results, adding to a list.


Array Concat

Combine two arrays into one.

PinDirectionTypeDescription
AInputArrayFirst array
BInputArraySecond array
ResultOutputArrayCombined array (A followed by B)

Pure. Use Array Concat to merge results from multiple sources into a single collection.


Array Slice

Extract a sub-array by start and end indices.

PinDirectionTypeDescription
ArrayInputArrayThe source array
StartInputIntegerStarting index (default: 0)
EndInputIntegerEnding index (exclusive)
ResultOutputArrayThe extracted sub-array

Pure. Use Array Slice to take the first N elements, skip elements, or extract a window.


Array Contains

Check if an item exists in the array.

PinDirectionTypeDescription
ArrayInputArrayThe array to search
ItemInputAnyThe value to look for
ResultOutputBooleanTrue if the item is found

Pure. Use Array Contains to check membership — is an IP in the blocklist, is a user in the allowed group.


Array Index Of

Find the index of an item in the array. Returns -1 if not found.

PinDirectionTypeDescription
ArrayInputArrayThe array to search
ItemInputAnyThe value to find
IndexOutputIntegerPosition of the item, or -1

Pure. Use Array Index Of to locate a specific element for subsequent operations.


Array Reverse

Reverse the order of elements in an array.

PinDirectionTypeDescription
ArrayInputArrayThe source array
ResultOutputArrayArray with reversed order

Pure. Use Array Reverse to flip chronological order, process items from newest to oldest.


Array Sort

Sort an array by value or by a key within each element.

PinDirectionTypeDescription
ArrayInputArrayThe array to sort
KeyInputStringProperty name to sort by (default: empty for direct value sort)
DirectionInputString"asc" or "desc" (default: "asc")
ResultOutputArraySorted array

Pure. Use Array Sort to rank results — sort alerts by severity, users by name, or events by timestamp.


Array Filter

Keep only elements that match an expression.

PinDirectionTypeDescription
ArrayInputArrayThe array to filter
ResultOutputArrayElements where the expression evaluates to true

Properties:

  • Expression — the filter expression using item as the current element (default: item != null).

Pure. Use Array Filter to narrow down results — keep only high-severity alerts, active users, or non-null values.


Array Map

Transform each element using an expression.

PinDirectionTypeDescription
ArrayInputArrayThe source array
ResultOutputArrayArray of transformed elements

Properties:

  • Expression — the transformation using item as the current element (default: item).

Pure. Use Array Map to extract a single field from each object, format values, or reshape data.


Array Reduce

Fold an array down to a single value using an accumulator expression.

PinDirectionTypeDescription
ArrayInputArrayThe array to reduce
Initial ValueInputAnyStarting value for the accumulator
ResultOutputAnyFinal accumulated value

Properties:

  • Expression — the reduction using accumulator and item (default: accumulator + item).

Pure. Use Array Reduce to sum values, build concatenated strings, or merge objects from a collection.


Array Find

Find the first element that matches an expression.

PinDirectionTypeDescription
ArrayInputArrayThe array to search
ItemOutputAnyThe first matching element, or null

Properties:

  • Expression — the search condition using item (default: item != null).

Pure. Use Array Find to locate a specific entry — the alert with a matching ID, the first failed check.


Array Find Index

Find the index of the first element that matches an expression.

PinDirectionTypeDescription
ArrayInputArrayThe array to search
IndexOutputIntegerPosition of the first match, or -1

Properties:

  • Expression — the search condition using item (default: item != null).

Pure. Use Array Find Index when you need the position rather than the element itself.


Array Every

Check if all elements in an array match an expression.

PinDirectionTypeDescription
ArrayInputArrayThe array to check
ResultOutputBooleanTrue if every element matches

Properties:

  • Expression — the condition to test using item (default: item != null).

Pure. Use Array Every to validate that all entries meet a requirement — all checks passed, all users confirmed.


Array Some

Check if any element in an array matches an expression.

PinDirectionTypeDescription
ArrayInputArrayThe array to check
ResultOutputBooleanTrue if at least one element matches

Properties:

  • Expression — the condition to test using item (default: item != null).

Pure. Use Array Some to check for the presence of a condition — any alert is critical, any IP is blocklisted.


Array Distinct

Remove duplicate elements from an array.

PinDirectionTypeDescription
ArrayInputArrayThe array to deduplicate
ResultOutputArrayArray with duplicates removed

Pure. Use Array Distinct to clean up collections — unique IP addresses, deduplicated user lists.


Array Flatten

Flatten nested arrays to a specified depth.

PinDirectionTypeDescription
ArrayInputArrayThe nested array
DepthInputIntegerFlattening depth (default: 1)
ResultOutputArrayFlattened array

Pure. Use Array Flatten to merge nested results into a single list — combining paginated API responses.


Array Group By

Group array elements into an object by a shared key value.

PinDirectionTypeDescription
ArrayInputArrayThe array to group
KeyInputStringProperty name to group by
GroupsOutputObjectObject where each key maps to an array of matching elements

Pure. Use Array Group By to organize data — group alerts by severity, events by source, or users by role.


Array Zip

Pair elements from two arrays into an array of two-element arrays.

PinDirectionTypeDescription
AInputArrayFirst array
BInputArraySecond array
ResultOutputArrayArray of [A[i], B[i]] pairs

Pure. Use Array Zip to combine parallel data — pairing IP addresses with their reputation scores.


Make Array

Create an array from individual element inputs.

PinDirectionTypeDescription
Item 0InputAnyFirst element
Item 1InputAnySecond element
Item 2InputAnyThird element
ArrayOutputArrayArray of the provided elements

Pure. Use Make Array to construct small arrays from separate values without writing JSON.


  • Object / Map — work with individual objects that arrays contain
  • Flow Control — iterate over arrays with For Each, For Each Parallel, Throttle
  • String — join arrays into strings or split strings into arrays

On this page