title: Why does this if statement not behave as I'd expect?
body: <p>I am making a program that will evaluate the value of something. I have a variable that holds the total value to be added, <code>rcoverE</code>. When I test "y" for the second question, it works, but when I put in "n", it adds 5 anyway. Why is this happening?</p>
  
  <pre><code>    #include &lt;iostream&gt;
      using namespace std;
  
      int main(){
          int year, yearE, rcoverE;
          string rcover, func;
          cout &lt;&lt; "Enter the decade your thing was produced (eg. 20):";
          cin &gt;&gt; year;
          cout &lt;&lt; "Does you typewriter have original thingy? (y,n):";
          cin &gt;&gt; rcover;
  
          rcoverE = 0;
          if(rcover == "y" || "Y"){
             rcoverE = rcoverE + 5;
          }else{
              rcoverE = rcoverE + 0;
          }
          cout &lt;&lt; rcoverE;
          yearE = 100 - year / 2;
  
      }   
  </code></pre>