是否允许嵌套“if”语句?前任:
<if cond="1 == 1">
<if cond="2 == 2">
One is in fact equal to one and Two is in fact equal to two
<else/>
One is in fact equal to one but Two is never not equal to two
</if>
<else/>
One is never not equal to one
</if>
我意识到我可以用 ' ' 语句重写这个条件,&&
但是我试图做的逻辑会很混乱,因为它必须在 if elseifs 链中不断重复。