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

PI Interface for Universal File and Stream Loading UFL

Code flow control (If statement)

  • Last UpdatedNov 16, 2022
  • 1 minute read

To define processing logic, specify the If statement as follows:

If <condition> Then <expression(s)> [Else <expression(s)>] EndIf

Specify the condition as follows:

{[NOT] <predicate> | (<condition>)}[{AND | OR} <condition>][, …]

Within the condition clause, specify the predicate as follows:

<predicate> ::= <expression>
{ == | > | < | >= | <= | <> | != } <expression>

In the predicate, specify the expression as follows:

<expression> IS [NOT] NULL

Example: If statement

If( FIELD(1) IS NOT NULL) Then

StoreInPI(FIELD(1),,NOW(),FIELD(2),,)

EndIf

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