How can I store a changing variable?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dumuz

So I have a global variable changing in process and I want to ‘stamp’ it’s value during another function, so I can compare that value to it’s future value. How would I do this?

:bust_in_silhouette: Reply From: johnygames

You could just create two such global variables; one that updates regulary and another one that is essentially a copy of the first. You create a function that creates a copy whenever necessary and you make another function that compares the two variables whenever you need them to be compared.

Thanks again Johny

Dumuz | 2020-01-04 01:42