Forum Discussion

yuchang's avatar
yuchang
Contributor
11 years ago

How to avoid running functions defined in a script?

In JScript, there are:



function main(){ f1(); f2();}

function f1()

function f2()



I found that when running the script, it runs main -> f1, f2 then f1 and f2.

How to avoid running f1 and f2? define f1 and f2 in another scripts then add unit reference to call them?