Multiple loop is not ending

dwpg005

Новичок
Регистрация
03.11.2012
Сообщения
23
Благодарностей
0
Баллы
0
Hi All,

I need help how to end the loop. For me it is not ending.

I have two loops counters. First counter will check the random number. If the condition is true it loops and post to first site. If the condition is false it will go to the second loop and increase the counter 2 and post article in second site. I want to end whole process if the counter 2 reach 30 times.

But my issue it not ending it is keeps on running. Because counter 2 starting as 0 ever time when it counters 1 condition is false.
 

dwpg005

Новичок
Регистрация
03.11.2012
Сообщения
23
Благодарностей
0
Баллы
0
Sample of my template
 

sMax

Client
Регистрация
04.05.2011
Сообщения
132
Благодарностей
49
Баллы
28
Seems like you are setting counter 2 to zero every time you enter that second loop.
so either don't reset it to 0, (set it to zero when you set counter 1 to zero).

OR

if you need to reset counter 2 every time, just add counter 3 and set it to zero with counter 1 (outside of the 2nd loop) and then only increase it and test it in the second loop.

Hope that helps.
 

dwpg005

Новичок
Регистрация
03.11.2012
Сообщения
23
Благодарностей
0
Баллы
0
Thanks now i can able to resolve the issue with your tips
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)