title: Bash scripting, multiple conditions in while loop
body: <p>I'm trying to get a simple while loop working in bash that uses two conditions, but after trying many different syntax from various forums, I can't stop throwing an error. Here is what I have:</p>
  
  <pre><code>while [ $stats -gt 300 ] -o [ $stats -eq 0 ]
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>while [[ $stats -gt 300 ] || [ $stats -eq 0 ]]
  </code></pre>
  
  <p>... as well as several others constructs. I want this loop to continue while <code>$stats is &gt; 300</code> or if <code>$stats = 0</code>.</p>