Global Scripting Variables (Library Script Top-Level Vars)

Be aware that the value will be lost if you edit and save the project--that causes a script restart and the project scripts will be re-run from scratch.

If you need a value that will survive that, you will need to use system.util.getGlobals(). Take care with that, though: if you store any custom classes there, you will leak gobs of memory when you edit the origin project. Some more guidance: