Like the popular Unix Shell, XP command line can use && and || combination of two commands, in order to perform, for example:
AA && BB
It is to perform AA, and then execute BB after success.
AA || BB
Execute AA first, if it is successful, BB is no longer executed, and BB is executed if it fails.
Return Value Errorlevel = 0 indicates that the command you sent is successful.