Hmmm… The problem is I don’t want to use this procedure to display text. I just want the procedure to go get the value from LocalStorage and put it in a (numerical) variable, then come back.
See, I need to get a bunch of these values from different places, perform operations on them in different procedures, and then display the answers separately, later on.
The whole reason I’m doing this is because it seems like using local storage is the only way to do global variables. Basically that is what I want- a workaround for the fact that there are no global variables in thunkable x.
It seems like I’m missing something. Is the only way to do this really to nest the entire mathematical operation in the then do, every time?? That seems really inelegant, but maybe that’s the only solution here?