Conditional Statements for XenForo 2

[xF 2.0-FREE] Conditional Statements for XenForo 2

  • Upgrade Your Account
    Hello Guest ! Upgrade your account to download any of our premium products Here.
    How to upgrade your account to download resources Learn More.
    Guest need to read through our rules and regulations Learn More.
    Important! Read your welcome message To know how to download.

J0ker

Staff member
Administrator
Moderator
SViP
V.I.P
Member+
Nov 30, 2017
3,074
3,441
120
J0ker submitted a new resource:

Conditional Statements for XenForo 2 - Guide and tutorial for conditional statements using XenForo 2 syntax

Conditional Statements for XenForo 2

The conditional statements can be expanded by using AND, OR conditional statements operators and using xf:if, xf:else, xf:elseif.

If there are any conditional statements that you want to add, please add it as a message and the article will be updated.

1. How can I show content to Administrators?

Code:
<xf:if is="$xf.visitor.is_admin">
    Show content...
</xf:if>
2. How can I show content to Moderators?...
Read more about this resource...