Why does this php code not work if ((a==a and b==b) or (c==c)) {}
<p>I can't find why and/or in one line of if doesn't work
it gets a=a and b=b that works but it wont get c=c that doesn't work</p>

<p>Example:</p>

<pre><code>if ((a==a and b==b) or (c==c)) {}
</code></pre>

<p>Actual code:</p>

<pre><code> if (($_POST['name'] == $naam and $_POST['password'] == $wachtwoord) or ($loggedin == 1)) {
</code></pre>
