小编Dev*_*iya的帖子

简化嵌套if else条件

我有这个嵌套的if else条件.我想要的检查流程在下面的代码中描述.

if (HiringManagerAPPROVED)
{ 
    //email reporting gropu
}
else if (ReportingGroupAPPROVED)
{ 
    //email Hiringmanager
}
else if (HiringManagerReAPPROVED)
{ 
    //email PPO
}                }
else if (PpoAPPROVED)
{ 
    //email Finance
}
else if (FinanceAPPROVED)
{ 
    //email president & COO
}
else if (PresidentCooAPPROVED)
{ 
    //email hr
}
else if (HRAPPROVED)
{
    //email Hiring Manager
}
Run Code Online (Sandbox Code Playgroud)

如何减少支票数量,保持支票流量不变.

c# asp.net if-statement nested-if

1
推荐指数
1
解决办法
604
查看次数

标签 统计

asp.net ×1

c# ×1

if-statement ×1

nested-if ×1