Did you add get json from object
block?
@actech is saying that Global Variables are not needed.
I will also say that, they are not needed.
Your code should be like this -
Thanks!
Now I understand! You not correctly get the data!
if < [(status) = (200)]
do get data…
You need to check the error now.
Do like this, it’s efficient.
Now I understand! You not correctly get the data!
if < [(status) = (200)]
do < get data…
x is the variable of the do something func.
Will nit work under the response block…
@actech
problem - he is using local var “x” as a global var
No, x - a global variable within the screen. Here, everything is correct. Of these local variables in Thunkable X no.
the var X is from the do-something procedure, will work only in that block.
No, outside of the function you can get the value of x. Try it and see.
when i checked the response it says 200 and when i set the error to a button it says undefined… am i getting error ?
That’s the right blocks to work with WebAPI
I tried earlier, It didn’t work…
@Tijender_Singh I will show you blocks after 10 mins, I am having food right now
I’ll catch here soon
I would be very glad to welcome your blocks!
thanks kartik