Program Structure
Each program written in CTL must contain the following parts:
All of them may be interspersed; however, there are some principles that are valid for them:
If an import statement is defined, it must be situated at the beginning of the code.
Variables and functions must be declared before use.
Declarations of variables and functions, statements and mappings may also be mutually interspersed.
Example 50. Example of CTL2 syntax (Rollup)
Note the //#CTL2
header.
You can enable the CTL compiled mode by changing the header to //#CTL2:COMPILE
. For more information, see 5. Compiled mode in Language Reference.
Last updated