title: Windows Batch If Block Syntax
body: <p>I really can't find what's the problem with the syntax of this script</p>
  
  <p>There's something wrong with the if blocks but I can't see what is the issue.</p>
  
  <pre><code>@ECHO off
  
  set PROJECT=C:/ws/UI/Trunky/plugins/.
  set EXE=grails
  set MVN=mvn
  set DEP=--refresh-dependencies
  set CLEAN=clean
  set ASSET=ProcessAssets -Dgrails.env=production -DRESOURCE_PATH=./assets
  set TEST=test-app unit: --non-interactive
  set FIXJS=-s ./hudson-config/settings.xml package
  set INPUT="%1"
  
  IF "%1" == "-dep"(
      ECHO %EXE% %DEP%
      ECHO "Refreshing dependencies."
  ) IF "%1" == "-clean"(
      ECHO %EXE% %CLEAN%
      ECHO "Cleaning up."
  )IF "%1" == "-asset"(
      ECHO %EXE% %ASSET%
      ECHO "Processing assets."
  )IF "%1" == "-test"(
      ECHO %EXE% %TEST%
      ECHO "Running Groovy tests."
  )IF "%1" == "-fixjs"(
      ECHO %MVN% %FIXJS%
      ECHO "Copying JS, Running Jasmine and performing coverage report."
  )IF "%1" == "-lazy"(
       ECHO rmdir /s /q "%PROJECT%"
       ECHO %EXE% %DEP%
       ECHO %EXE% %CLEAN%
       ECHO %EXE% %ASSET%
       ECHO %MVN% %FIXJS%
  )
  
  ECHO "Done. Have a great day!"
  </code></pre>