Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connecting terms in if statements with ; (semicolon) ( "" is important)
- @echo off
- set /a a=1+1
- set /a b=1-1
- if "%a%;%b%"=="2;2" ( echo Error
- ) else ( echo %a% equals 2 but %b% does not equal 2 )
- pause>nul
- exit
Advertisement
Add Comment
Please, Sign In to add comment