Resource icon

Conditional Statements for XenForo 2

Admin

Administrator
Staff member
Sep 28, 2017
1,484
103
63
#1
Admin submitted a new resource:

Conditional Statements for XenForo 2 - Conditional Statements for XenForo 2

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?

Code:
<xf:if...
Read more about this resource...