Help needed with loop

This sounds like the questions we have discussed here:

Maybe you check that out or you could provide us a sample workflow that shows us your problem like @Gavin_Attard has already suggested.