title: Using a default value in CMD Batch
body: <p>Can someone help me with my batch. I'm trying to have an escape at the beginning of my batch but it's not working. I'm sure it's simple but I'm not a regular user of this type of programming.</p>
  
  <pre><code>cls
  @echo off
  set usr_out=y
  set /p usr_out=Press [N] to cancel:
  
  if NOT %usr_out% == Y goto myend
  if NOT %usr_out% == y goto myend
  
  echo in
  
  pause
  exit
  
  :myend
  echo out
  pause
  </code></pre>
  
  <p><strong>EDIT:</strong> Sorry, I forgot to detail that the code above only goes to the <code>echo out</code> line when I don't enter a value.</p>