title: How to do complex conditionals in Bash (mix of 'and' &&, 'or' || ...)
body: <p>How do I accomplish something like the following in Bash?</p>
  <pre><code>if (&quot;$a&quot; == &quot;something&quot; || ($n == 2 &amp;&amp; &quot;$b&quot; == &quot;something_else&quot;)); then
    ...
  fi
  </code></pre>