Post your updated loop or method - enough to see the changes you made.
Type: Posts; User: GregBrannon
Post your updated loop or method - enough to see the changes you made.
You can use the catch{} block to achieve this. Your code indenting is also funky, causing the code to be harder to read:
do
{
// reset the repeat flag
firstWGood = true;
try
...
If firstWord is true, then !firstWord is false, and the do/while loop will end. The sample run you posted confirmed that.
Don't question the results, question the logic that provided the results.