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

AVEVA Enterprise SCADA

If-then-else

  • Last UpdatedApr 24, 2025
  • 1 minute read

This is the basic syntax for if-then-else statements.

A multi-line if statement is shown below. This also shows the ElseIf construct.

If (input1 = input2) Then

input1 = input2

ElseIf (input1 > input2) Then

input2 = input1

Else

input1 = input2

End If

The If statements can also be single line as below:

If (input1 = input2) Then input = input2 Else input2 = input1

Related Links