I am not sure what you are trying to accomplish perhaps you could enter a portion of your code so we can help you better.

To end a loop early use a break:
Example
Code:
Foreach (string word in line)
{
   if (word == "test")
   {
      break;
   }
}
As soon as a word matches the chosen word it will break out of the loop.

Sorry I can't use more elaborate examples I am at work right now. Post what you are trying to do in a little more detail so we can try to help you better.

By the way if you want it to keep looping until the user's input is correct then you will need a while loop.