Flow Control
-
Begin Do-While
Starts a repetition structure that runs a block of code until a condition is met. -
Case
Evaluates one or more conditions and runs a command block. -
Continue
Continues the execution of a repetition structure from its beginning. -
Else
Defines the command block that is executed when the condition of the If (if
) command is not met. -
Else If
Defines the command block that runs when the condition of the If (if
) command is not met, while checking for other conditions. -
End Case
Ends a command block started by the Case (case
) command. -
End Do-While
Executes a block of instructions as long as the defined condition is true. -
End For Each
Terminates a command block started by the For Each (foreach
) command. -
End If
Terminates a command block started by the If (if
) command. -
End While
Terminates a command block started by the While (while
) command. -
Execute Subroutines
Runs a dynamic list of subroutines based on their names, and new routines can be added while the command runs. -
For
Starts a repetition structure, while changing the value of a control variable. -
For Each
Cycles through a collection and assigns the value of each item in it to a variable. The variable's value is replaced on each iteration. -
Go to
Advances or returns to the script point where the marker is inserted. -
Go to If
Advances or returns to the point where a marker is inserted in the script if a condition is met. -
If
Runs a block of commands if the defined condition is met. -
Insert Label
Inserts a label that is used by the Go to and Go to If commands to reroute the script's execution. -
Interrupt Loop
Interrupts a repetition structure from running further. -
Next
Terminates the command block started by the For (for
) command. -
Otherwise
Defines a block of commands to run when the conditions defined by the When (when
) command are not met. -
Return from Subroutine
Returns to the scope that called the subroutine. -
Run Subroutine
Runs a subroutine. It might return new values for its parameters. -
Run Subroutine If
Runs a subroutine if a defined condition is met. -
Then
Defines a block of commands to run when the conditions defined by the When (when
) command are met. -
When
Used with the Case (case
) command to define the conditions of a set of rules. -
While
Repeats a block of commands while a condition is true.