A proven practice for handling the identification of logon data type is to use nested if statements which will check for Trusted Credentials, Credentials, Forms and finally for SSO.
对于识别登录数据类型,一种已经证明有效的做法是使用嵌套的IF语句检查可信凭证、凭证和表单,最后检查sso。
With that being stated it becomes reasonable to change part of the logic of that code snippet and change the structure of the IF statements from sequence to nested.
根据上面的分析,合理的方法应该是修改代码片段的部分逻辑,把IF语句的结构由顺序改为嵌套。
Using such a statement can sometimes be a better route than nested for loops or if statements to cut down on repetitive code or just for better structure.
有时候,使用这种语句比嵌套的for循环或if语句更好,可以减少重复的代码而且结构更清楚。
Still, there's no escaping the nested sequence of if-else statements.
尽管如此,仍然无法避免使用嵌套的if -else序列语句。
Still, there's no escaping the nested sequence of if-else statements.
尽管如此,仍然无法避免使用嵌套的if -else序列语句。
应用推荐