文字列が MRSVANDERTRAMP.txt に含まれているかどうかに関係なく、このバッチ ファイルのこの部分に入力されたものはすべて、自動的に :yes に移動します。
: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