Multiple Inline Conditions AND OR vs ELSEIF
<p>I think sometimes I don't need to use ELSEIF and not repeat stuff by maybe doing multiple checks inline.</p>

<p>I've done this before.</p>

<p>I'm trying this simple line and just can't make it work.</p>

<p>I read that:</p>

<p>OR is the same as ||</p>

<p>AND is the same as &amp;&amp;</p>

<p>Code (The short way, but doesn't work):</p>

<pre><code>if($subdom&lt;&gt;'www' or $subdom&lt;&gt;'nosub')
{do some stuff if any of the two are meet}
</code></pre>

<p>I also tried this:</p>

<p>Code:</p>

<pre><code>if((subdom!='www') || ($subdom!='nosub')){}
</code></pre>

<p>What will be the correct operators to check for any of the two? Is it || or &amp;&amp;. Should we use != or &lt;>  also?</p>

<p>Some Info found after question answered:<br></p>

<blockquote>
  <p>$a &amp;&amp; $b<br />
  //And   //TRUE if both $a and $b are TRUE.</p>
  
  <p>$a || $b<br />
  //Or   //TRUE if either $a or $b is TRUE.</p>
</blockquote>

<p>Either of these will work as the comparison:</p>

<p><strong>!==</strong> (not equal identical), but not <strong>!=</strong> as it will mean "does not assign"<br>
<strong>&lt;></strong> will do the trick without too much merry go round.</p>
