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 2024 R2)

ELSE

  • Last UpdatedJan 11, 2023
  • 1 minute read

Operator that returns the second of two specified values when the conditional expression in IF-THEN-ELSE statement is True.

Syntax

IF (expression) THEN (x) ELSE (y)

Arguments

  • expression

    Any expression that evaluates to true or false

  • x, y

    An expression that evaluates to an output value

Returns

x when the conditional expression is true and y when the expression is false

Exceptions

None

Example

  • IF ('att1' > 50) THEN ('att2') ELSE ('att3')

    [If the value of 'att1' is greater than 50, then return the value of 'att2'; otherwise return the value of 'att3']

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