Script Flow Commands |
Top Previous Next |
In general EMUEScript commands are executed in the order that they appear in the script. There are, however, a few commands the redirect script execution to a different part of the script. These commands are grouped under the category of "Script Flow Commands" because they affect the flow of the script.
IF statements give EMUE a lot of it's power, by allowing the script to make intelligent decisions. EMUE will execute different code depending on the truth of one or more conditions.
Commands like GoTo cause EMUE to start processing at a different point in the script. The location in the script is identified by a label, which always starts with a colon.
The FOR loops are used to have EMUE process a section of code multiple times. This is frequently used when processing a file or a list to cause EMUE to read each data record and process it.
The CALL and RETURN statements are used together to run a section of code like a subsection of code before returning back to normal processing.
|