Conditionals Documentation

limboclub

Active member
I was sure there was doco for conditionals but when searching I can only find support requests for specific issues (none of which match my issue).

Can someone link to this?

If there is none, can anyone tell me why this simple if/else if/else doesn't work?

<xen:if is="{$forum.node_id} == 52">
CODE A
<xen:if is="{$forum.node_id} == 21" />
CODE B
<xen:else />
CODE
</xen:if>

On forum 52 it shows both CODE A and CODE B.
 
All good, but a new wrinkle appears when I try to nest:

<xen:if is="{$forum.node_id} == FORUM A">
<xen:if is="{$user.user_id} == NUMBER">
CODE A1
<xen:else />
CODE A2
</xen:if>
<xen:elseif is="{$forum.node_id} == FORUM B" />
CODE B
<xen:else />
CODE C
</xen:if>

I put my own user_id in at NUMBER, but it still shows CODE A2.
 
Top Bottom