I just want to ask what will happen to the value of the variable if I switch to another screen. for example i initialize the variable to zero then i make some function that the variable will be set to 5. will the variable value of 5 stays or it will go back to 0 after switching screens?
It stays 5 for the same screen till you close the application may be
In tinyDB Last Value only be stored wherever screen you are in…
If you change it anywhere then that new value only readable from tinyDB
It will be on 5 if you return on previous screen And It will be 0 when you will stop the application.