title: How to set the EQU operator to work properly?
body: <p>Everything works fine in this program except when user enters the correct number generated by the program. For example, it replies "too low" if you enter 13, and "too high" if you enter 14. How do you fix this so the 3rd if statement functions properly?</p>
  
  <pre><code>@echo off
  title Game
  set num1=%random%%101
  :start
  set /p num2=Enter a number: 
  if %num2% gtr %num1% (echo too high
  pause
  cls
  goto :start
  )
  if %num2% lss %num1% (echo too low
  pause
  cls
  goto :start
  )
  if %num2% equ %num1% (echo Bingo!)
  pause
  cls
  exit
  </code></pre>