The ifelse() statement adds the possibility of executing code when the if statement evaluates to false.
$mood = "sad";if ($mood == "happy") { echo "Hooray, I'm in a good mood!"; }else { echo "I'm in a $mood mood."; }