Forum Discussion
There are project Variables (acccessed by Project.Variables.<variable name>) that are global throughout the specific project. You could also create a variable on the Project Suite level (ProjectSuite.Variables.<variable name>) that would span all projects within the project suite. Either is a built in way of having a global variable that is not language specific nor do you need to worry about any include statements or nested code.
You could also use the mechanic in JavaScript of module.export and requires to add variables and objects to other code units.
- jpatterson6 years agoNew Contributor
I was overthinking the solution. Using shared exported variables I was able to incriment the shared variable in a local script (which changed the variable value at the project level), which is exactly what i was looking for. Thanks again!
Related Content
- 5 years ago
- 10 months ago
Recent Discussions
- 22 hours ago
- 2 days ago