title: Simple logical operators in Bash
body: <p>I have a couple of variables and I want to check the following condition (written out in words, then my failed attempt at bash scripting):</p>
  
  <pre><code>if varA EQUALS 1 AND ( varB EQUALS "t1" OR varB EQUALS "t2" ) then 
  
  do something
  
  done.
  </code></pre>
  
  <p>And in my failed attempt, I came up with:</p>
  
  <pre><code>if (($varA == 1)) &amp;&amp; ( (($varB == "t1")) || (($varC == "t2")) ); 
    then
      scale=0.05
    fi
  </code></pre>