Procedure to "freeze" a loop until a condition is meant?

Does a such procedure exist? For example, if I have a loop that runs on a timer, is there a way to delay the start of the next cycle until another condition is met?

I don’t understand you much but I think you want delay the start to the next iteration until a certain condition is met.

Try doing a loop within a loop. Something like this.

while (condition for the start of loop)

(code to loop)

while (condition to freeze the loop)

'leave it blank

wend ' WEnd for freeze loop

(code to loop if any)

WEnd ' WEnd for main loop

Log in to reply