title: My else if statement using a string is not working
body: <p>after a good amount of time trying to get my else if statement to work, it just doesn't. This program keeps returning the first one, no matter what I input. Please help.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  string arehap;
  
  int main()
  {
      cout &lt;&lt; "Are you happy?" &lt;&lt; endl;
      cin &gt;&gt; arehap;
      if (arehap == "Yes" || "Y")
      {
          cout &lt;&lt; "Good." &lt;&lt; endl;
      }
      else if (arehap == "No" || "N")
      {
          cout &lt;&lt; "Bad." &lt;&lt; endl;
      }
      return 0;
  }
  </code></pre>