Use the following statements to control the flow of an ESL interface, which can consist of one or more ESL programs.
Statement |
Description |
action |
Invokes an action routine. |
action is |
Defines an action routine. |
call |
Invokes a subroutine. |
change to program |
Transfers control from the current program to another program. |
exit |
Terminates the current program. |
for each member loop |
Specifies a set of action statements to be performed for each member of a class. |
for loop |
Specifies a set of action statements to be performed repeatedly, until an integer variable reaches a specified value. |
if/then/else |
Tests whether a specified condition is true or false, and allows you to perform actions based upon the result of the test. |
include |
Includes another source code file in the current program, at compile time. |
invoke |
Allows you to execute a Windows or PM application while another is running. In ESL for DOS, the invoke statement allows you to suspend ESL while you execute another application and return to ESL when it finishes. |
leave loop |
Allows you to branch out of a loop. |
save program as |
Creates a new program by saving the currently executing program with the current state of its objects and the current values of its local variables. This statement can be used in an action routine but not in a subroutine. |
subroutine |
Declares an ESL internal subroutine or an external subroutine. |
subroutine is |
Defines an ESL internal subroutine. |
switch |
Performs pattern matching on a specified string value. |
while loop |
Allows you to specify actions to be performed repeatedly, as long as a specified condition is true. |