I am trying to create a global variable that can be accessed throughout the entire document. From what I could find on the forum it looked like the way to do this was with local storage. So I tried to write this code:
I want it to create a global variable called “prev” and set it to the name of the current scene. Then I want to display another scene called “List”. But when I try to run the program, it doesn’t seem to be working (as it never displays the new scene). I’m pretty sure the problem is in the local storage command, because the code works if I take that out. But I’m not sure what’s wrong with it / how to fix it?