Need help creating loop

@marcia Thanks I will try it out later and see if it works.