title: Mathematical equations using if-else statements
body: <p>I'm getting a few errors whilst using a test script to achieve a particular result.</p>
  
  <p>I want to calculate a <strong>word-list</strong> from a document which is stored in a folder and then </p>
  
  <p>the variable <code>"wword"</code> is the amount of words that were CORRECT. There's a total of 17 words. This number (15) of course will be changed base on user input, therefor the reasoning of the variable <code>"wword"</code> </p>
  
  <p>The current problems that I have is "unary operator expected" and that this line of code <code>gradel=$('"$wword"' - 17)</code> is not inserting the <code>$wword</code> variable as it should be 15. What am I doing wrong? </p>
  
  <pre><code>wword="15"
  
  gradel=$('"$wword"' - 17)
  gradel=$('"$gradel"' / 17)
  
  
  
  if [ "$gradel" =&gt; "1" ] 
  then 
    gradel="A+" 
  
  elif [ "$gradel" =&gt; ".90" ] 
  then
    gradel="A"
  
  elif [ "$gradel" =&gt; ".85" ] 
  then
    gradel=“B+”
  
  elif [ "$gradel" =&gt; ".80" ] 
  then
    gradel=“B”
  
  elif [ "$gradel" =&gt; ".75" ] 
  then
    gradel=“C”
  
  elif [ "$gradel" =&gt;  ".70" ] 
  then
    gradel=“C-”
  
  elif [ "$gradel" =&gt; ".65" ] 
  then
    gradel="D"
  
  else
    gradel="F"   
  
  fi
  
  echo "$gradel"
  </code></pre>