Hey so I've been looking at the example shared which IS really awesome to see as it does show a local storage saving and such but i'm still struggling to get it to work as I need it too which is slightly different. In the example it works for me so i see it working like that, but in my case i'm dealing with settings.. and i'm needing to check when the app opens to automatically look vs hitting a go buttons which would seem easy to transition but my tests are still coming up short.
I read the documentation for local storage closer and they too suggest the dictionary and that's great, but my situation just doesn't quite behave like the examples and my attempts to simulate them to line up with the examples are leading to unsuccessful attempts.
The basic thing i need to understand is unlike your event which has a go button.. i'm doing "on start of layout" and it still feels like i'm not getting a clear idea of order of operation..
1. you check if "mystorage" exists.. in the "mystorage" missing you just have "" for text.. so when a first time condition happens and "mystorage" is missing.. does it automatically create "mystorage" and instantiate it?
2. when you confirm "mystorage" exists you get "key1" and "key2" but there is no value in them for the very first time. I need to define a value (i think) to make sure that my logic for the options state in the options screen to be correct. trying to figure out an elegant way to set global variables because my logic currently listens to a "texton" var and "audioon" var that is just 0 or 1..
i'd like to think i can get value from the key instead, but so far that wasn't working.. but it was hard to know if the key was being set correctly in the first place. i'm just not sure if that's that right thing.