AgentTadpole

Answers - User Input Comparison

Oct 18th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. set /p in1="Enter first variable: "
  3. set /p in2="Enter second variable: "
  4.  
  5. cls
  6.  
  7. if %in1%==%in2% goto equal
  8. goto notequal
  9.  
  10. :equal
  11. echo The two variables are equal
  12. exit
  13.  
  14. :notequal
  15. echo The two variables are not equal
  16. exit
Advertisement
Add Comment
Please, Sign In to add comment