Looping Issue

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
gchichester
Pro Scripter
Posts: 132
Joined: Mon Dec 22, 2008 4:56 pm
Location: St Augustine FL

Looping Issue

Post by gchichester » Thu Feb 05, 2009 9:15 pm

I have hit a wall with trying to get this script to work.
I need to call this Label>SelectConts again but as you can see it it will go into a infinite loop.
It there a way maybe to use “Repeat/Untilâ€

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 05, 2009 9:31 pm

If Counter is larger than NumTimesToLoop your loop will never end. Or if one is a number and one a string it will also never end.

After the Add>Counter,1 line set a breakpoint and see what the values of Counter and NumTimesToLoop are.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

gchichester
Pro Scripter
Posts: 132
Joined: Mon Dec 22, 2008 4:56 pm
Location: St Augustine FL

Looping Issue

Post by gchichester » Fri Feb 06, 2009 2:16 pm

Marcus,
Thanks for your thought.
I thought I had a looping problem but it really was my If statement.
I was able to fix my problem with a If/Else

Thanks again.

Gilc

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts