title: multiple conditions in an if - else in javascript
body: <p>I'm trying to make a program that only accepts a few values. So, if "e" variable is not 1 or 2 or 3, says that the number is not correct, but if the value is equal to those numbers, then the else part is run.</p>
  
  <p>All of this may sound very begginer level and easy to implement, and it is, but I ran the code and EVERY vaule I set to "e" runs the if part.</p>
  
  <p>Here is code:</p>
  
  <pre><code>var e;
  
  e=parseFloat(prompt("Input e",""));
  
   if(e!=1 || e!=2 || e!=3)
    {
    alert("put again E");
    }
  
   else
    {
    //whatever
    }
  </code></pre>