How does variable really works?


In my app, I have a Screens where I setup variables and an other screen where I use them, I set my variables as “Stored” and from what I read in the documentation, “stored” variables are stored in the device, but when I quit and close the App all of my variables are gone.Is there a way to keep the variables even if I close my phone ?

my blocs:

(Where I use the variables)

(Where I setup my variables)

a link to the app:

What I want to achieve:
You setup an URL and when you put the phone facedown, you go to this URL, you can store multiple URLs for differents results

thanks for your help

Because stored variables aren’t initialized, they start with a null value. You need to check for null values when the screen opens. If the stored variable equals null then set the stored variable to “” (empty string) or whatever default url you prefer.

I recommend watching this video:

1 Like

Thanks for the response that exactly what i’m looking for, Happy New year

By the way sorry for the late reply, the notification is in my spam folder somehow

1 Like