For example, if I set 'profile' key in local storage to equal zero, then I go to the log in screen in the same if statement, it doesn't seem to change the key? It's all happening in an if statement and I made it change a test global to a certain number and that number comes up, so it's doing the if statement...which includes a local storage write, but it's ignoring that?
Does changing layouts cancel storage writes?
Edit: My mistake, I had a naming error on my key. Seems to be working now, thanks for the help.