Hi! I am trying to build a bot that will prompt a user to input a number (2,3,4,5, etc.) then the process will repeat that many corresponding times. The problem is, currently when it loops, even if you put in “2” as the input, it continuously loops.
In your loop, have a condition that limits the iteration to the point where you need. So if you are using a while loop for example, have a counter variable that increments each time the loop is iterated and have a check to make sure the counter variable always stay less than or equal to the number that user provides. This condition will make sure the loop will not execute infinitely…
Fine
Hope these steps would help you resolve this issue buddy
—use a input dialog box activity and get the output from this activity with a variable of type string named out_value
—use a assign activity with a variable of type int32 counter with a default value of 0
— use a while loop with condition like this Convert.ToInt32(Out_value)>counter
Then inside the loop use any activity you want so that it will iterate till counter value buddy
Hope this would help
Kindly try this and let know for any queries or clarification
Cheers @LeoHeff