title: Nested if else in BAT file, what am I doing wrong?
body: <p>I have the following bat file:</p>
  
  <pre><code>@ECHO off
  set ErrorThreshold=
  set j=5
  
  IF "%ErrorThreshold%"=="" (
    echo a
  ) ELSE (
    IF %j% GTR %ErrorThreshold% (
      echo b
    ) ELSE (
      echo c
    )
  )
  </code></pre>
  
  <p>If the ErrorThreshold has no value, the program reports <code>The syntax of the command is incorrect.</code>. If I set a value, everything works.</p>
  
  <p>Can someone help me figure out what's wrong?</p>