怎么不能用else if($sex!="男")代替else if($sex=="女")
if($sex=="男")
{
$totalMoney = $basicMoney + 0;// 男的没奖金
if($noHouse)
{
$totalMoney = $totalMoney + $houseMoney;
}
}
else if($sex!="男")
{
$totalMoney = $basicMoney + 300;// 女的有奖金300元
if($isPregnancy)
{
$totalMoney = $totalMoney + $pregnancyMoney;
}
}