I have a sequence looped 3 times that includes a switch with 3 cases. I want on each loop to choose the first case, then on the next loop, skip the current one and go to case 2 and then repeat the sequence for the last time and choose case 3. How to assign a skip for each item? I have done a demo with each case containing a message box.
Bit confused about your actual question (not sure if it’s because I can’t see your Xaml or not). If loop 1 requires case 1, loop 2 requires case 2, etc. then you could just make a single sequence of the steps you need for each loop?
I know that I can set the number of times to 3 in the Repeat number of times activity and it will do what i want. Execute case 1, then case 2, then case 3. However, in my real project, underneath the Switch activity there are other activities than need to be executed. So when doing case1, then other activities executes, on the second loop, the bot needs to skip case 1 and goes to the next case key.
Yes you’re right. The repeat number of activities is not needed and I fixed it by replacing the CurrentItem variable with the Counter variable and all is working now. Thanks! Marked as solved.