Hi all,
I am trying to build an add to make some complex calculations based on temperature and pressure.
my approach is making a script and then attach this to an invisible add-in. Then use use the formulas in the pluging, in Formulas via global:myfunc().
If I have a single function on my script this approach works (see topic).
However, if I have two nested functions in one jsl script. This approach does not work anymore.
Here is my jsl script:
myfun1 = Function({x},
a = x+10;
Return(a);
);
myfun2 = Function({x},
b = myfun1(x)+10;
Return(b);
);So what I would like to do in practice is call myfun2 from the Formula editor as follow:

but I get the following error:

Is there a way to do this?