When using more than 1 IF statement, is there a special guideline that should be followed? Should they be grouped? Should I use parenthesis to wrap the command(s)?
An ex
You can structurize your batch file by using goto
IF EXIST somefile.txt goto somefileexists goto exit :somefileexists IF EXIST someotherfile.txt SET var=... :exit