orir2 0 Posted March 18, 2014 Report Share Posted March 18, 2014 (edited) Hey.I wanted to know how I can do a loop within a loop.I mean to enter the first loop, do one step out of several, and continue the inner loop, make the whole steps in it, repeat the outer loop, move to the second step and do it,and then again to enter the inner loop, and so on.Until the end.Thanks in advance and sorry about the language Edited March 19, 2014 by orir2 Quote Link to post Share on other sites
Bot-Factory 602 Posted March 19, 2014 Report Share Posted March 19, 2014 Hi. Just add another loop into your first loop: ui stat monitor("Mon1:", #status1)ui stat monitor("Mon2:", #status2)set(#status1, 0, "Global")set(#status2, 0, "Global")loop(10) { increment(#status1) loop(10) { increment(#status2) wait(0.25) }} CheersDan Quote Link to post Share on other sites
the_way 52 Posted March 19, 2014 Report Share Posted March 19, 2014 a loop within a loop, hmmmmmmmmmm have you been watching inception? Quote Link to post Share on other sites
orir2 0 Posted March 20, 2014 Author Report Share Posted March 20, 2014 (edited) Thank you all for the help! Edited March 20, 2014 by orir2 Quote Link to post Share on other sites
Ptrick125 45 Posted March 21, 2014 Report Share Posted March 21, 2014 a loop within a loop, hmmmmmmmmmm have you been watching inception? It got confusing for me once I had a loop within a loop within a loop 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.