Statement
Control statements allow evaluating a sequence of shortcuts when condition is true and evaluating a different sequence of shortcuts when condition is not true.
IF
The IF statement is one of the most useful control structures. It enables you to evaluate a sequence of commands if a condition is true and evaluate a different sequence of commands if it is not true.
ELSEIF
The ELSEIF statement enables you to evaluate a sequence of commands if a condition is true and evaluate a different sequence of commands if it is not true.
ELSE
The ELSE enables you to evaluate a sequence of commands if none of the IF or ELSEIF conditions are true. Note: There is a maximum of one ELSE per IF statement.
ENDIF
The ENDIF statement finishes the IF..ELSEIF..ELSE sequence.
DELAY
The DELAY statement suspends execution of the task for a specified time period.
SET VARIABLE
This statement creates a variable that can be used later during task execution.
LastErrorCode
The code of the error of the last command execution (0 means command executed successfully).
LastExitCode
The code returned by the command (for example, Kill Process command returns number of killed processes).
FILE EXISTS
Test if the specified file or folder exists. The File name is a folder or path and file name, which can contain wildcard characters (* and ?).
FILE NOT EXISTS
Test if the specified file or folder not exists. The File name is a folder or path and file name, which can contain wildcard characters (* and ?).
FILE LOCKED
Test if the specified file is locked. The File name is the file that will be tested.
FILE NOT LOCKED
Test if the specified file is not locked. The File name is the file that will be tested.
PROCESS RUNNING
Test if the specified process is running. The Process file name is the executable file of the process that will be tested.
PROCESS NOT RUNNING
Test if the specified process is not running. The Process file name is the executable file of the process that will be tested.
WINDOW EXISTS
Test if the specified window exists. The Window title is the title of the window that will be tested.
WINDOW NOT EXISTS
Test if the specified window does not exists. The Window title is the title of the window that will be tested.
IDLE TIME
Test the user idle time.
SYSTEM UPTIME
Test the time elapsed since the last system boot.
HOST PINGS
Test if the specified host (or IP address) pings by means of ICMP protocol.
Terminal Services: All these checks are performed taking into account the session/user under which the task is being executed.
Categories: Manual, Shortcut type
Leave a Reply
You must be logged in to post a comment.