Abstract
Learn more about the Cortex Query Language arrayfilter()
function.
Syntax
arrayfilter(<array>, <condition>)
arrayfilter(<array>, "@element"<operator>"<array element>")
Note
The <operator> can be any of the ones supported, such as = and !=.
Description
The arrayfilter()
function returns a new array with the elements which meet the given condition. The function does this by filtering the results of an array in one of the following ways:
Returns the results when a certain condition is applied to the array.
Returns the results when a particular array is set to a specified array element.
Though it's possible to define the arrayfilter()
function with any condition, the examples below focus on conditions using the @element
that are based on the current element being tested.