Logical OR operator in string comparison?
<p>Why does this comparison fails? How do I compare for alternating strings in csharp ?</p>

<pre><code>Static void Main(string[] args)
    {
        string varFoo = "cat";

        if (varFoo != "cat" || varFoo!="duck")
            Console.WriteLine("You can enter.");
        else
            Console.WriteLine("Not allowed.");

        Console.ReadLine();
    }
</code></pre>

<p>Just wanted something as</p>

<pre><code>If(Either cat or a Duck)
    // You're not allowed
else
   // you are welcomed.
</code></pre>
