In one of my function objects (a global function) I'd like to transport the value of a few variables from one invocation of the function to the next. In C or C++ I'd use the 'static' keyword here.
I could be using global variables but that's quite ugly and it makes it hard to import this function into other PowerScript objects; I'd like the .srf file to be self-contained.
Does anybody know alternative ways for variables to keep their values? FWIW, the script function is called via PBNI.