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
| Name | Type | Required | Description |
|---|---|---|---|
| series1, series2 | dynamic | ✔️ | 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
| s1 | s2 | s1_equals_s2 |
|---|---|---|
| [1,2,4] | [4,2,1] | [false,true,false] |
Related content
For entire series statistics comparisons, see:
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.