Variables initialization behaviour

So, React native (the background language of thunkable) will let us create a variable without assigning it a type. this means, it waits to be assigned a value and will return null if you call it before a value is assigned.

app type can be set on initialization

stored type must be set programatically with blocks.

for an app i use these ‘stored’ type in, i want them available from day 1, so i create a splash screen that checks if ‘values set’ equals null or 1.
if it equals null, i set all stored variables to some initial value.
if it equals 1, then all my stored variables have some desired value in them and i can use them as needed.

you can get past this by using local storage instead of stored variables, but these require more blocks/code and you will be more prone to produce errors.