title: Unexpected evaluation path
body: <p>I'm making a simple batch script. The problem is that it always executes the <code>:rand</code> block of code.</p>
  
  <p>Here is the script:</p>
  
  <pre><code>@echo off
  ver
  echo %COMSPEC%
  
  IF "%1"=="" goto help
  IF "%1"=="h" goto help
  IF "%1"=="-h" goto help
  IF "%1"=="help" goto help
  IF "%1"=="-help" goto help
  
  IF %1=="-random" goto rand
  IF %1=="-eval" goto eval
  
  :rand
  echo %@RANDOM[-10,10]
  goto end
  
  :eval 
  echo %@eval[%2]
  goto end
  
  :help
  echo Program sluzy do korzystania z funkcji @RANDOM @EVAL
  echo aby skorzystac z @RANDOM, prosze uruchomic program z argumentem -random
  echo aby skorzystac z @EVAL, prosze uruchomic program z argumentem -eval
  goto end
  
  :end
  </code></pre>
  
  <p>What am I doing wrong?</p>