SyntaxFix
Write A Post
Hire A Developer
Questions
I think this is the syntax you are looking for:
if [ -z != $errorstatus ] then commands else commands fi