You can concatenate the the two if's to

if
else
fi