If statement IF语句的Alteryx设计器问题

If statement IF语句的Alteryx设计器问题,if-statement,alteryx,If Statement,Alteryx,谁能看出这个IF语句有问题吗。我在Alteryx中运行时出错 如果!isnull([期初余额合计])则为[期初余额合计]或 如果!IsNull([期末余额合计])则为[期末余额合计]否则“” endifor必须是一个“else”,您还需要另一个endif。。。以下是这些MOD,还带有缩进以使其更清晰: If !IsNull([Opening Balance Total]) then [Opening Balance Total] else if !IsNull([Closing

谁能看出这个IF语句有问题吗。我在Alteryx中运行时出错

如果!isnull([期初余额合计])则为[期初余额合计]或

如果!IsNull([期末余额合计])则为[期末余额合计]否则“”

endif

or必须是一个“else”,您还需要另一个endif。。。以下是这些MOD,还带有缩进以使其更清晰:

If !IsNull([Opening Balance Total]) then
    [Opening Balance Total]
else 
    if !IsNull([Closing Balance Total]) then
        [Closing Balance Total]
    else
        ""
    endif
endif
“or”必须是“else”,你还需要另一个Endif。。。以下是这些MOD,还带有缩进以使其更清晰:

If !IsNull([Opening Balance Total]) then
    [Opening Balance Total]
else 
    if !IsNull([Closing Balance Total]) then
        [Closing Balance Total]
    else
        ""
    endif
endif

非常感谢。你真棒,周末愉快。谢谢!你真棒,周末愉快。