XF 2.0 Conditionals

Blue

Well-known member
How would you add more usergroups to this? I have 4 that I need to put in.


<xf:if is="{{!$xf.visitor.isMemberOf(x)}}">
Hide content...
</xf:if>
 
I think this should work:
HTML:
<xf:if is="{{!$xf.visitor.isMemberOf([a, b, c, d])}}">
    Content
</xf:if>
Would I be able to combine that with an additional qualifier to look for a custom user field? eg: "If the user is not in one of these groups and if the user doesn't have one of these custom user field checkboxes turned on..."
 
Back
Top Bottom