IF 语句的 Alteryx Designer 问题

Alteryx Designer Problem with IF Statement

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

if !isnull([期初余额总计]) 则 [期初余额总计] 或

if !IsNull([期末余额总计]) then [期末余额总计] else ""

结束

"or" 需要是一个 "else",你还需要另一个 Endif...这里是这些模组,也有缩进以使其更清楚:

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