I have the following loops. Is there some alternative to these or a better way to combine them into the same statement? I have looked as Do While Loops but I don't really know if that is what I need.

I would like to make this a bit cleaner and more efficient if there are any suggestions.

Please Login or Register  to view this content.

Please Login or Register  to view this content.