execute
OPL keyword for pre- and postprocessing.
Purpose
OPL keyword to introduce preprocessing or postprocessing scripting blocks.
| context |
|---|
| Model files (.mod) |
Syntax
Scripting: "execute" Id_opt "(execute-block)"
| "main" "(execute-block)"
Description
This instruction precedes a scripting block in the preprocessing or postprocessing phase. The scripting block can be named.
Example
An unnamed scripting block:
execute {
writeln("Hello World.");
}
A named scripting block:
execute HELLO {
writeln("Hello World.");
}
Execute statements are processed in declaration order.