title: Comparing 3 integers using bash
body: <p>Hey so why am I getting a syntax error on my conditionals. I've checked with previous questions online on the use of quotes <code>""</code> and <code>[[]]</code> and made sure to use both. Also the <code>&amp;&amp;</code> symbol in the <code>if</code> statement but I can't seem to get it to work any ideas?</p>
  
  <pre><code>#!/bin/bash
  echo Please input integer number 1
  read i1
  echo Please input integer number 2
  read i2
  echo Please input integer number 3
  read i3
  if [[ "$i1" &gt;= "$i2" ]] &amp;&amp; [[ "$i1" &gt;= "$i3" ]];then
      echo $i1
  elif [[ "$i2" &gt;= "$i1" ]] &amp;&amp; [[ "$i2" &gt;= "$i3" ]];then
      echo $i2
  else
      echo $i3
  fi
  </code></pre>