title: Multiple and ors in if statement bash
body: <p>Hi i am working on somoething , i need to create a if statement which will take multiple variables in '&amp;&amp;' and '||' combination . for now i am trying to this this simple task but i am getting errors 'Command not found'. i want to first &amp;&amp; two counts than || it with a flag i set in my code. following is the code i am trying </p>
  
  <pre><code>if [[$pcount -eq 0 ] &amp;&amp; [$ucount -eq 0]] ||  [test $flag -eq 1]
  then 
  do my stuff 
  else 
  exit 1
  fi
  </code></pre>
  
  <p>thank you in advance.</p>