title: Or operator not working
body: <p>When I enter start then the program outputs the else function even though I fulfilled the criteria, I have tried with &amp;&amp; as well and it still didn't work. Any answers would be appreciated.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;windows.h&gt;
  using namespace std;
  
  int main ()
  {
      float timer;
      bool end;
      std::string input;
  
      end = false;
  
      cout &lt;&lt; "Enter start then a number to count down from" &lt;&lt; ".\n";
  
      while (end == false){
          cin &gt;&gt; input;
  
          if (input.find("end" || "End") != std::string::npos)
          end = true;
  
          else if (input.find("start" || "restart" || "Start" || "Restart") != std::string::npos)
          {
              cin &gt;&gt; timer;
  
              while (timer&gt;0){
                  timer -= 0.1;
  
                  Sleep(100);
  
                  cout &lt;&lt; timer &lt;&lt; ".\n";
              }
  
              cout &lt;&lt; "Finished! Enter restart then another number to perform another countdown, or enter end to close the program" &lt;&lt; ".\n";
          }
  
          else
          cout &lt;&lt; "Enter start" &lt;&lt; ".\n";
      }
  
      return 0;
  }
  </code></pre>