Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Analytics and Notifications for PI System Explorer (PI Server 2018)

FilterData

  • Last UpdatedJan 11, 2023
  • 1 minute read

Get all the values in an array that satisfy a given condition.

Syntax

FilterData(a1, condition($val))

Arguments

  • a1

    a variable representing the array to operate on

  • condition($val)

    any supported PE statement, as a function of $val, that returns a true or false. $val is a placeholder for each value in the array

Returns

An array of all the values that satisfy the given condition

Exceptions

None

Notes

None

Example

  • FilterData(Data, (NOT BadVal($val) AND $val > 50))

    [From an array named Data, return a new array of values where none are bad values and all are greater than 50]

In This Topic
TitleResults for “How to create a CRG?”Also Available in