title: Batch file keeps crashing at if statement
body: <p>I am making a simple text game. Everything works fine until it gets to the if statement. I do not know what i am doing wrong.</p>
  <pre><code>@echo off
  
  title Text Adventures
  
  echo &quot;What is your name?&quot;
  
  set /p name=
  
  echo &quot;That was a bad crash. Are you hurt, %name%?&quot;
  
  echo.
  
  echo Y/N
  
  set /p answer=
  
  if %answer% equ y goto hurt
  
  :hurt
  
  echo.
  
  echo &quot;I see. That's a gnarly gash you've got there!&quot;
  </code></pre>