How do I make a "wait until" statement?

I would like to “wait until” a certain variable equals some value then run some code.

I can use the “repeat until” block with an empty body, but other programming languages severely frown upon doing this.

Is there any better alternative?

I think this can help you. @24dlau

I do not think that will work. The code is a “wait until x = y” thing, not a “wait until X is clicked”.

For example, when the key is clicked, wait until X = 5 (which could happen at any point in time), then do something.

Hi @24dlau, look at this: you forever control if the variable “i” has certain value (5 for example)…

Hope this helps,

Hmm, I guess such solution will have to do for me. Thank you anyways.