I read from the documentation that it recommends using e.g:
g = new Global("j1");
However if I put a value at the top in a .js file without the var keyword then the variable is accessible from other js scripts in the same patcher. Is this not a recommended approach?
//Beginning of some .js file..
tesvar = "globalvalue";
using Global you can share data within your patcher across other JS instances .
Ok – thanks for the input!
C74 RSS Feed | © Copyright Cycling '74