[Solved] Variable empty - affect value to globale variable through function


I have a problem to affect value to a variable through function, here my blocks with json

thx in advance for help!

I think your function is correct but you are assigning the variable to a label when the function may not have completed yet.

You probably want features[0] but you are requesting `features[1]’

Thx Tatiang, I added a wait block with 0.03 and now all it’s OK!

1 Like

Thx for your help :slight_smile:
tatiang was right

1 Like