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

elseif shorthand?

Jaxel

Well-known member
#1
So you can do conditions in templates with:

Code:
<xen:if is="$condition1">
    stuff
<xen:elseif is="$condition2"/>
    other stuff
<xen:else>
    more stuff
</xen:if>
There is also a shorthand:

Code:
{xen:if '$condition1', 'stuff', 'more stuff'}
That shorthand can't do an "elseif". Is there a way I can do that shorthand?