Comeaway 1 Posted December 19, 2011 Report Share Posted December 19, 2011 This an easy problem to explain but translating into a bot has me feeling stupid. You have two variables. Last name and first name. Last name increments one letter at a time. So A to B, B to C, C to D. Easy. But I need to loop inside of LAST name sequence A to B .... 26 first name letters; so first name beginning with A and ending with B. THUS A to B looks like this.... SEQUENCE 1Last name equal or greater then ALast name less than BFirst name equal or greater than AFirst name less than B SEQUENCE 2 Last name equal or greater then ALast name less than BFirst name equal or greater than BFirst name less than C Sequence 26 Last name equal or greater then ALast name less than BFirst name equal or greater than YFirst name less than Z Silly me I though I could loop the last name sequence and in the last name sequence loop the first name loop. Eg fist name loop inside the last name loop. This approach does not work. What I thought would happen is the last name would increment, then the first name loop inside the last name loop would kick in and loop 26 times. What is happening is that UBot hits that first outside loop, it is ordinarily sequencing. So when the last name loop start it just keeps looping the last name. Thus:A) you can't put a loop inside a loop, OR Last name Loop will sequence in its entirety, then then move on to the first. What is happening is the last name keeps incremental I don't know if it will ever get to the internal loop, because i didn't want to watch it for an hour. Screen shot included HELP!!!Thanks,g Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 20, 2011 Report Share Posted December 20, 2011 set control variables that your incrementing. then at the end of the loop for A if #a_controlvar is > list total of A THAN ---set a_controlvar = 0 ELSE --do nothing will stop from the list out of range error. but will start that list over from beginning if your lists are not the same length Quote Link to post Share on other sites
Comeaway 1 Posted December 20, 2011 Author Report Share Posted December 20, 2011 got it thanks. Very creative. 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.