in reply to Re: Processing lines after a pattern in a while loop
in thread Processing lines after a pattern in a while loop
And this is the solution that I would use. It is straightforward. It separates out loops which serve different purposes. It avoids the synthetic variable. What's not to like...?