I wish I could ++ you again. I moved the additional test inside the while loop as an if, and got the output I desired. There are a few logic errors that need to be fixed, but at least the behavior makes sense to me now.
Thank you, thank you, and thank you again,
digger.