Persistent variable
Posted: Sunday 25 August 2019 12:18
Hi
I am starting to persistent variable. I have a strange behaviour in my opinion.
I initialize a variable called temp to let's say 20.
The variable is well kept between different call to the script. Perfect.
But it happens that my script is not working as expected, so I make change in the script and save it again. In my opinion, the script, when saved, should re-initialize the variable, because you have changed something in the script and it doesn't make sense to keep previous values of variables.
It doesn't behave like this. Is it a feature or it is something that should be changed?
thanks
I am starting to persistent variable. I have a strange behaviour in my opinion.
I initialize a variable called temp to let's say 20.
The variable is well kept between different call to the script. Perfect.
But it happens that my script is not working as expected, so I make change in the script and save it again. In my opinion, the script, when saved, should re-initialize the variable, because you have changed something in the script and it doesn't make sense to keep previous values of variables.
It doesn't behave like this. Is it a feature or it is something that should be changed?
thanks