title: PHP nested if conditions
body: <p>What I'm trying to achieve is a nested condition like <code>if ((a = true &amp;&amp; b = true) or (c = true &amp;&amp; d = true)) {...}</code>.  This doesn't seem to be working for me.</p>
  
  <p>To further explain: I have two variables in what we could call a 'top', and two variables in what we could call a 'bottom'.  What I need to do is execute code if variables are true in both 'top' and 'bottom'.</p>
  
  <p>To more succinctly illustrate:</p>
  
  <pre><code>if ((t1 = true &amp;&amp; b1 = true) or
      (t1 = true &amp;&amp; b2 = true) or
      (t2 = true &amp;&amp; b1 = true) or
      (t2 = true &amp;&amp; b2 = true)
  ) {
      ...do some stuff...
  }
  </code></pre>
  
  <p>I'm tempted to call it 'conditional statement for lattice problem'... except it isn't really a lattice problem... but it does sort of look like a lattice if you drew it <code>|X|</code> ... s'yeah, you're amazing if you can tell me a good way to do this, and you're super amazing if you can tell me what I ought to call it.</p>