title: How can I make a Variable True and check if the variable is true?
body: <p>EDIT</p>
  
  <p>I think i formulated myself wrong,
  the sword is an item you can obtain ingame, so the value starts at 0 (FALSE).
  When the player obtains the sword, the variable goes to 1 (TRUE).
  Now, after the variable is true, I want to be able to use</p>
  
  <pre><code>  choice /c 12 /n /m "What do you want to do?"
      echo.
      IF %errorlevel%==1 goto Continiue1
      IF %errorlevel%==2 goto Gameover1
      **IF %sword%==TRUE choice /c 3 /n /m "[SWORD] -Attack!"**
  </code></pre>
  
  <p><strong>IF %sword%==TRUE choice /c 3 /n /m "[SWORD] -Attack!"</strong></p>
  
  <p>/EDIT</p>
  
  <p>Please help me understand how I can return a value from a variable and use it later to check if the variable is true.
  I am new to batch programming, so I'm still learning new things!</p>
  
  <pre><code>@echo OFF
  :start
      set sword=False
  
      IF %sword%==True echo You have a sword!
      echo.
      IF %sword%==False echo You don't have a sword.
      echo.
      pause
  </code></pre>
  
  <p>I have been searching the web for two days without any luck.</p>