title: Using GOTO inside an IF statement
body: <pre><code>   if  %_var%==1 (
      goto :group1
  ) else if  %_var%==2 (
      goto :group2
  ) else (
      goto :groupOthr
  )
  </code></pre>
  
  <p>What am I doing wrong here ? I keep getting the error - </p>
  
  <blockquote>
    <p><em>( was unexpected at this time.</em></p>
  </blockquote>
  
  <p>Tried doing this - </p>
  
  <pre><code>   if  %_var%==1 (goto :group1
  ) else if  %_var%==2 (goto :group2
  ) else (goto :groupOthr
  )
  </code></pre>
  
  <p>And then I get - </p>
  
  <blockquote>
    <p>(goto was unexpected at this time.</p>
  </blockquote>