Global vs. local variables in iOS?

Hi All,

[Some corrections below.]

Is there a way to create a global variable in iOS? Placing a variable outside of a block (which should be global scope) results in it being grayed out.

Thanks!
BillG

Oops, actually the variables look like they are global, not local as I first thought:

Clicking Button1 sets the variable globalScopeProbably to “Button1”. Then, clicking Button2 sets it to “Button2”. This indicates that globalScopeProbably is global in scope, not local.

Does Thunkable for iOS support local variables? If so, how?

Thanks!
BillG

Hi there. We don’t yet support initializing variables. We do support local variables within functions:

2 Likes