Jump to content
UBot Underground

enter loop and back


Recommended Posts

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 by orir2
Link to post
Share on other sites

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)
    }
}

 

Cheers

Dan

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...