Jump to content
UBot Underground

[Question] Wait until variable is equals to X ???


Recommended Posts

Hello,

 

I'm trying to mess with the while loop function but I'm having problems with it.

 

In short, i have 5 threads working. Once a thread is done, it increments the variable #readytocontinue once. I want to make the main script wait until the variable #readytocontinue is equals to 5 (which means all threads are done), so it can continue. It should't continue until the variable is equals to 5.

 

How can I do this?

 

Thanks.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...