title: eval as if statement condition
body: <p>Why is the output of the following statement true?</p>
  
  <pre><code>VAR="[[ "x"=="y" ]]"
  if eval $VAR ; then
      echo "true"
  else
      echo "false"
  fi
  </code></pre>
  
  <p>Is there any other way to use a variable as condition for an if statement in bash?</p>