title: Using If Statements in Batch Files
body: <p>I have a script of batch (modeled after Joshua in "War Games")</p>
  
  <pre><code>@echo off
  color 0b
  echo Greetings, Professor Falken
  set /p interface =
  echo Would You Like to Play a Game?
  set /p ifGame =
  if /i "%ifGame%" =="yes" goto yesgame
  if /i "%ifGame%" =="no" goto nogame
  :yesgame
  echo List of Games
  echo chess
  echo Poker
  echo Fighter Combat
  echo Guerilla Warfare
  echo Desert Warfare
  echo Air-to-Ground Actions
  echo Theaterwide Tactical Warfare
  echo Theaterwide Biotoxic and Chemical Warfare
  echo Global Thermonuclear War
  pause
  echo Which game would you like to play?
  set /p WhichGame =
  pause
  exit
  :nogame
  set /p areYouSure=Are You Sure? 
  pause
  exit
  </code></pre>
  
  <p>But, when I enter "No" it still shows the list of games...</p>