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

AVEVA™ Plant SCADA

Conditional Statements

  • Last UpdatedJul 18, 2023
  • 1 minute read

Do Loop

Allows you to execute a block of statements an indefinite number of times.

End Function

Ends a block of statements such as a Sub procedure or function.

Exit

Exits a loop or procedure.

For

Repeats its block of statements a set number of times as determined by the values used with the To clause.

GoTo

Branches unconditionally and without return to the label specified in the GoTo statement.

If

Tests an initial condition and then either performs or omits to perform the statements it contains, dependant upon the logical result of the test condition.

OnError Statement

VBAs error-handling routine and specifies the line label of the error-handling routine.

Select

Tests the same variable for many different conditions.

Stop

Ends execution of the program.

While...Wend

Similar to the Do While loop statement.

With

Not supported in VBA.

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