Hey, I have a small question
How can I make the following sequence:
If variable = 0 then do activity 0 times
If variable = 10 then do activity 10 times
If variable = 100 then do activity 100 times
Can I do this with the for each function maybe? Help would be appriciated!
You can use While activity here.
- Assign intCounter = 1
- While intCounter <= variable
1.1 Insert your activity here.
1.2 Assign intCounter = intCounter + 1
Alright thanks, I think this will work well!
You can do this without using an external counter by using a For Each with Enumerable.Range.
You would just need to replace ‘100’ with whatever your variable is.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.