Math doesn't work?

oh yeah I am so dumb you mean add another condition to the if that is brick1!=-500 so if(1&&2&&3&&brick1!=-500)