Multiple for each loops

Can we have multiple for each loop in one sequence activity???

Yes.

@jimmy_jos1

Yes buddy.

how?

Please first explain, what are you trying to work on!! Only then can I tell you that how you can use the for each!!

  1. You can use the for each within for each.
  2. You can use one after the other also!!

@jimmy_jos1

Good morning @jimmy_jos1,

You should just be able to drag and drop the For Each activity right into the other For Each activities.

you mean inside the body of for each loop

Yup! You got it Jimmy!

Hi, would like to know if many for each loops has an affect on performance in terms of code speed and efficiency?

For example instead of using a for each to run through every row, use Linq language as an assign to run through the whole datatable. Would that be more efficient?

Thank you

I did a few experiments and in terms of speed, execution time it was the same, however, I feel like linq running through the whole datatable instead of for each running through every single row one at a time would require more processing power. Any thoughts?

Hi Filipe,

check this thread:

1 Like