codecombat/scripts/windows/coco-dev-setup/batch/scripts/ask_question.bat
2014-04-04 12:52:22 -04:00

5 lines
No EOL
158 B
Batchfile

set /p res="%1 [Y/N]: "
set "result=unset"
if "%res%"=="Y" (set "result=true")
if "%res%"=="y" (set "result=true")
if "%result%"=="unset" (set "result=false")