Let’s see how to call a macro function within the script. We will build the function “Inc()” which will increment by 1 the passed parameter and return the result to the script.
In the macro editor write:
Inc = Value+1
Now, in the script, we will use a variable to receive the function result and display it in the interface:
LET _VAR1 = Inc(1);
Remember, you can call functions, not subroutines. And inside the functions, don’t call interface elements since they are not available during the load.