Logical OR seems to act like conditional OR
<p>I'm somewhat unclear about the conditional vs. logical || oprators. Well, looking at what I just wrote, let me restate that: My code does not do what it supposed to do based on the differences between conditional and logical OR.</p>

<p>I have text box as date field that has its text property set to "mm/yyyy" by default. My validator evaluates true for this condition and for a empty value (as with two quotations /""/ marks) as well. So after all this I'm checking the value with this:</p>

<pre><code>if (tbEndDateMo.Text != "mm/yyyy" | tbEndDateMo.Text != "" | tbEndDateMo.Text != string.Empty)
</code></pre>

<p>When the value is "mm/yyyy", it passes inside the IF and same when value is blank. Looking at this <a href="http://msdn.microsoft.com/en-us/library/6373h346.aspx" rel="nofollow">Microsoft reference</a>, I understand the difference and I thought I wrote code based on this - but it does not work the way I want it to. If the text box evaluates to the "mm/yyyy" or blank (or empty) skip the IF. What am I doing wrong?</p>

<p>Thanks,</p>

<p>Risho</p>
