title: BASH: Basic if then and variable assignment
body: <p>I'm used to csh, so this is kinda irritating having to use bash.  What is wrong with this code?</p>
  
  <pre><code>if[$time &gt; 0300] &amp;&amp; [$time &lt; 0900]
  then
  $mod=2
  else
  $mod=0
  fi
  </code></pre>