series_equals()

Learn how to use the series_equals() function to calculate the element-wise equals (==) logic operation of two numeric series inputs.

Calculates the element-wise equals (==) logic operation of two numeric series inputs.

Syntax

series_equals (series1, series2)

Parameters

NameTypeRequiredDescription
series1, series2dynamic✔️The numeric arrays to be element-wise compared.

Returns

Dynamic array of booleans containing the calculated element-wise equal logic operation between the two inputs. Any non-numeric element or non-existing element (arrays of different sizes) yields a null element value.

Example

print s1 = dynamic([1,2,4]), s2 = dynamic([4,2,1])
| extend s1_equals_s2 = series_equals(s1, s2)

Output

s1s2s1_equals_s2
[1,2,4][4,2,1][false,true,false]

For entire series statistics comparisons, see: