Expression and Conditionals Permissions


Well-known member
I am using the Widget Sidebar, but I am having issues with the Expression permissions. I can't figure out how to show to multiple usergroups, also avoiding others. For instance, I am trying to create this to work with all registered members, but not my premium members (which are a secondary usergroup).

XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 2)
I also want to do this with conditionals which I was unable to figure out how to do multiple usergroups for some while avoiding others.

Jake Bunce

XenForo moderator
Staff member
if (XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 2) AND !XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 4))

If member of group 2 and not member of group 4.