7.1 List of statements
Table 7-1 lists the statements that you can use when creating a script. The numbers in parentheses in the statement list indicate the product version from which the statement is supported. Statements without a following number are supported from version 01-00.
Statement |
Description |
---|---|
= |
Assigns the value on the right side to the variable on the left. |
Do...Loop (05-10) |
Iterates a sequence of statements as long as a specified condition is true, or until a specified condition becomes true. |
For...Next |
Iterates a sequence of statements a specified number of times. |
For...End For |
Iterates a sequence of statements for all the files in a specified folder. |
If...Then...Else |
Executes conditional processing dependent on the value of an expression. |
Select Case |
Executes one of a number of statement blocks, depending on the value of a conditional expression. |
While...End |
Iterates a sequence of statements as long as a specified condition is true. |
Function |
Declares the name and arguments, and indicates the start of the Function procedure. It also defines a sequence of statements enclosed by the Function statement and End Function statement as a Function procedure. |
Sub |
Declares the name and arguments, and indicates the start of the Sub procedure. It also defines a sequence of statements enclosed by the Sub statement and End Sub statement as a Sub procedure. |
Call |
Passes control to a Sub procedure or Function procedure. |
Exit xx |
Exits from a While...End loop, For...Next loop, For...End For loop, Do...Loop loop, Function procedure, or Sub procedure. |
GoTo (05-00) |
Jumps to a specified label. |
Continue (05-00) |
Returns to the start of a While...End loop, For...Next loop, For...End For loop, or Do...Loop loop. |
On Error (05-00) |
Enables or disables transfer of control to a specified label if an error occurs. |