How to run the loop from the middle of the activities in for each row

Iam trying to run the activity in middle of the for each row loop, iam getting error as object reference is not set.
cant i run the activity in-between of the loop
Please suggest

any solution

Can you provide a screenshot with what you want to do?
What activity you want to run inside for each row?

Vasile.

int counter = 1
for each row in datatable {
if counter >4 ( assuming you don’t want first 4 rows to run )
{
only then run the activity
}

else
{
do nothing
}
counter = counter +1
}

//This way, you can run only the activities from where you want and if you don’t want to proceed any further use break activity