RSS Feed/News xf:if xf:elseif xf:else - Template conditions

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,760
Points
823

Reputation:

Hey XenForo,

How do I have an elseif statement with a catch all? Or do templates support case statements?

I.e. I'd like to do someting like:

HTML:

Code:
    <xf:if is="$case == 1">
        Case 1
    <xf:elseif is="$case == 2">
        Case 2
    <xf:else />
        Default case
    </xf:if>

Continue reading...
 
Status
Not open for further replies.
Top