Question about variables in gateway scripts

Hey all,

Are gateway script variables persistent? Or, to say it another way, if I run a gateway timer script with a variable that increments would that value stay the next time the script runs or would it be reinitialized back to 0 or null?

Would it be better to write the value to a memory tag and then read that value at the beginning of the script?

Not persistent. Memory tag would work.