title: Batch file - If statement and goto error
body: <p>Anything put into this part of this batch file automatically goes to :yes, regardless of whether the string is contained in MRSVANDERTRAMP.txt or not. </p>
  
  <pre><code>:enterverb
  set /p id=Enter Verb: 
  
  findstr /m %id% MRSVANDERTRAMP.txt
  if %errorlevel%==0 (
  goto :yes 
  ) else (
  goto :no
  )
  
  :no
  echo Verb does not take etre in the Perfect Tense. 
  pause
  goto :option0
  
  :yes
  echo Verb is a MRSVANDERTRAMP verb and takes etre in the Perfect Tense.
  pause
  </code></pre>