嵌套If语句结构 [英] Nested If Statement Structure

查看:77
本文介绍了嵌套If语句结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此空的if语句的结构是否正确?

Is the structure of this empty if statement correct?

If (Statement 1)
{
    (Return 1)
}
else
{
    If (Statement 2)
    {
        (Return 2)
    }
    else
    {
        If (Statement 3)
        {
            (Return 3)
        }
        else
        {
            If (Statement 4)
            {
                (Return 4)
            }
            else
                // from JSOP - possibly a statement could go here
        }
        If (Statement 5)
        {
            (Return 5)
        }
        else
            // from JSOP - possibly a statement could go here

    // from JSOP - definitely a missing closing brace here
}       

推荐答案

否.现在看一下它的格式,以便您可以实际阅读.
No. Look at it now that its been formatted so you can actually read it.


这篇关于嵌套If语句结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆