Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sun Jul 22, 2018 1:12 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Can anyone show me a nested loop?
Thanked: 0 time(s)  Unread post Posted: Thu Jul 05, 2018 10:40 pm 
New User
New User



Joined: Thu May 10, 2018 4:20 am
Posts: 6
Been thanked: 0 time(s)
Has thanked: 3 time(s)
Contribution Points: 22
Hi guys!
I'm curious to learn how to make a nested loop work?
so basically this is what i would like
a simple loop firing off sequential functions and this loop will loop through the function.

ie: Outer Loop have function 1, function 2, function 3, inner loop, function 4 within the loop.

I would like the Inner loop to keep on looping until certain criteria are met and then exit that loop and continue on to function 4 and then outer loop starts again.

Would anyone give me some example code for me to look at for something like that?
I just don't know how to make it work. either i break out from the loop but it breaks completely out, or the inner loop is stuck and won't break out correctly.

Would anyone please show me an example doing what i'm asking? basically make a loop work and then have a nested loop also work inside the first loop. but the nested loop will stop upon certain criteria but don't stop the outer loop and continue on with next function.

could anyone show me an example code that i can look at?

Thank you!


Top
 Profile  
Reply with quote  
 Post subject: Re: Can anyone show me a nested loop?
Thanked: 0 time(s)  Unread post Posted: Wed Jul 11, 2018 6:33 pm 
VIP Contributor
VIP Contributor
User avatar



Joined: Wed Jul 02, 2014 7:36 pm
Posts: 603
Been thanked: 47 time(s)
Has thanked: 7 time(s)
Contribution Points: 179
I don't think you need a nested loop for this, I assume you know the while keyword, what I personally would do is , have a variable(check the forums) which can have true or false as a value (or 1 / 0 ) , inside the While loop you check with an if whether the "criteria" was met or not, if it wasn't do 4 functions , if it was do function 4 , and set the variable back to it's original state :) . There are guides on the forum regarding variables , also some documentation on youtube

_________________
viewtopic.php?f=302&t=19314 - easy money earning ways
viewtopic.php?f=303&t=20133 - recently hatch tip
http://blueeye-macro.com/viewtopic.php?f=43&t=24733 - Pokestorm fishing bot
http://blueeye-macro.com/viewtopic.php?f=454&t=24890 - FPS boost for nvidia users
viewtopic.php?f=454&t=24974 - FPS boost


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group