Blue Eye Macro

Can anyone show me a nested loop?
Page 1 of 1

Author:  aznlj2001 [ Thu Jul 05, 2018 10:40 pm ]
Post subject:  Can anyone show me a nested loop?

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!

Author:  galli14 [ Wed Jul 11, 2018 6:33 pm ]
Post subject:  Re: Can anyone show me a nested loop?

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group