title: How do I write an if statement within a while statement in Bash Shell Script?
body: <p>I'm currently having simple syntax issues with the following bash shell script. I'm not sure what the syntax is for nesting an if statement into a while statement, or if it's even possible with bash shell scripting (new to all things linux):</p>
  
  <pre><code>#!/bin/bash
  
  myCombo=$((RANDOM%99999+10000));
  echo ${myCombo};
  
  myCracker=00000;
  
  while [ (($myCracker&lt;=99999)) ]; do
      if [ $myCracker -eq myCombo ]
      then
          echo "The combination is " ${myCracker} " !"
      else [ $myCracker = $myCracker + 1 ]
      fi
  done;
  </code></pre>