05.03.2012, 00:02
The resetting to zero works as I want it.
What I also want is a way to check if the variable has been set or unset (i.e. a difference between 0 and some other state of "zero"). But that's only a nice-to-have feature. I just have to set the value which contains a positive number starting with 0 to -1 and can use that as "unset state".
Thanks for the helpful replies.
What I also want is a way to check if the variable has been set or unset (i.e. a difference between 0 and some other state of "zero"). But that's only a nice-to-have feature. I just have to set the value which contains a positive number starting with 0 to -1 and can use that as "unset state".
Thanks for the helpful replies.