Loop Question

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
I checked Wiki but it is it not helping me.

Lets Say I have a form with 3 fileds:

Product_name
quantity
Add to cart
Submit purchase

And would like to repeat this action 10 times, At the moment what I did is this:

SET COUNTER VALUE = 1
IF COUNTER VALUE < 10 (Green arrow to "Block to execute" below)


###########Bloc to execute##############
Product_name
quantity
Add to cart
###########Bloc to execute##############

INCREMENT COUNTER OF + 1(Arrow pointed back to "SET COUNTER VALUE = 1").

But this is not working, the script get stuck at the top first block called "SET COUNTER VALUE = 1".

Could you please explain to me further how it works?I thought it would be very easy but it looks like not.


Thank you,

Ben
 

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
Did you pick Variable when you set the counter to 1?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 266
Благодарностей
5 853
Баллы
113

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
make screenshot of your project for this part.
you need to compare it with wiki screenshots.
you dont need to return to Set value action never again after loop started
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Thank you for your help,

Here it is:
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Blank)
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Sorry here it is:
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 266
Благодарностей
5 853
Баллы
113
It seems that you have misled smth.... You have different variables "SetCounter" and "Counter".
Counter.jpg
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Thank you so much for your great help.
Well spotted by the way the variable error.
It is getting, there, now it is running from the "red" counter < 10 down to the bottom where it says "increase count on 1", the problem is that Green arrow that should send the programm back to the start of the loop is not working. The program stops at the bottom, any idea what I missed there please?

Thank you,

Ben
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Check variable there too
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Thanks, also one of the popup needs a pause as the script tries to right to the fields before the popup shows up.

Thanks again!!!

Ben
 

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