Statements
Top  Previous  Next


The statements of ImageWarp scripting language control the flow of script execution. Instead of running code sequentially from the first line of code to the last line of code, you can use conditional statements to write code that makes decisions and repeats actions. Currently the following statements are supported:

Dim…As…
Declares a variable and makes its type fixed.
If…Then…Else…End If
Conditionally executes a group of statements
For…To…Step…Next
Repeats a group of statements a specified number of times.
Do…Loop
Repeats a block of statements while a condition is TRUE or until a condition becomes TRUE
While…Wend
Executes a series of statements as long as a given condition is TRUE.
Goto Goto
Branches unconditionally to a specified line within a procedure.
Sub…End Sub
Declares the name, arguments, and code that form the body of a Sub procedure.
Function…End Function
Declares the name, arguments, and code that form the body of a Function procedure.
End
Terminates execution of the script.
Print
Outputs data to the terminal window.
Input
Inputs data from the terminal window
Dialog
Displays the input dialog
Cls
Clears the terminal window
Beep
Generates a tone using the computer's speaker
Rem
Includes explanatory remarks to the script