vmunich 0 Posted February 11, 2014 Report Share Posted February 11, 2014 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. Quote Link to post Share on other sites
vmunich 0 Posted February 11, 2014 Author Report Share Posted February 11, 2014 (edited) Nevermind, I did something like this: loop while($comparison(#readytocontinue, "<", 5)) { wait(2) } and it seems to be working Edited February 11, 2014 by vmunich Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.