expr $VAR + 1; if [ $? -ne 0 ]; then do stuff... fi