Is there a way to create a loop which while only stop if specific strings are entered?
<p>What I'm trying to do is make a loop which prompts the user for information and will only stop if certain strings are entered. Specifically, I want it only to accept certain letters, both upper and lowercase. Here's what I have so far:</p>

<pre><code> do
 {
  salesP = prompt("Enter the initial of the first name of the salesperson: ", "");
 }while (salesP != "C" || salesP != "c")
</code></pre>

<p>Basically the while part is completely wrong and I know it. I've tried everything I can think of, and the best I can do is get it to accept a single variable. I also need it to accept d, x, and m, both cases.</p>
