• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Conditionals Documentation

#1
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.
 
#4
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.