You could probably contrive to put that into a switch(), though I don't think it would gain you anything, since each case would need to be an expression, e.g.:
switch(true) {
case (empty($_POST["login"]) && empty($_POST["password"])) :
// do stuff
break;
// etc.
}