First of all, you are using `[` which is short hand for `test`. From `man test`:

>       STRING1 != STRING2
>              the strings are not equal
 
You're using wrong tool for the job. What you need is 

>      INTEGER1 -eq INTEGER2
>              INTEGER1 is equal to INTEGER2

Second, you have multiple conditions to test here. Instead of using one lengthy if statement , try to sum the output of each variable, as glenn suggested in comments, and test that. Alternatively, evaluate the output of each command right after it exist. There's no point in running others, if you're going to quit because that command's output anyway