Comparing operands of different types
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
When you use the <> operator to compare any two operands of different types, the expression always returns a 1 (that is, true). When you use any other relational operator (anything except <>) to compare two operands of different types, the expression returns a 0 (that is, false) except in the following case:
If one of the two operands is the digital type, then the PI Performance Equation Scheduler compares the digital operand to the digital state of the other operand, if it exists. For example:
'sinusoid' = DigState("Shutdown")