Source Code

The Source code script allows you to use the Gentee script programming language in your scripts.

External source code
If you mark this checkbox, then define top-level constructs like func, type, const in the Source code field. Otherwise, the Source Code field must contain language constructs that can be used inside the function body.

Source Code
You can insert any source code in the Gentee programming language here. Note that the Source command allows you to insert other commands inside itself. In this case, use the %body% macro to substitute the internal commands. For example, if we want to execute a set of some commands several times, we can use the Source Code script with the code like the following one.

1for i in 1..10 {
2    SetVar("index", str(i))
3    %body%

The result of the script

Downloads Documentation Scripts