Testing an environment variable value

If you use in a batch file something like 'if %1 == OK …', this may crash your batch file because, if %1 is empty, it will result in a syntax error. Instead, use 'if %1. == OK. …'.