DIAdem Help

Control Structures

  • Updated2024-09-12
  • 1 minute(s) read

Control Structures

DIAdem works through scripts sequentially and stops when it reaches the end of the script. However, sometimes you want statements to execute several times, depending on a condition. VBS has control structures that you can use for this purpose.

Use control structures, such as condition statements and loop statements, to specify how DIAdem executes the script. If you use conditions, you can make decisions. If you use loops, you can repeat statements.

Condition statements

If...Then...Else

Select Case...Case...End Select

Loop statements

For...Next

For Each...Next

Do While...Loop

Do...Loop Until

While...Wend