• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Help me combine IF statements


Well-known member
I'm currently using the following statements:

<xen:if is="{$visitor.user_id}">
<xen:if is="!{xen:helper ismemberof, $visitor, 14, 15}">
<xen:if is="in_array({$contentTemplate}, array('online_list','conversation_view','member_list'))">
I'm guessing this is quite a inefficeent way to do this.

Could someone help me combine it so that its just the one if?


Chris D

XenForo developer
Staff member
<xen:if is="{$visitor.user_id} AND !{xen:helper ismemberof, $visitor, 14, 15} AND in_array({$contentTemplate}, array('online_list','conversation_view','member_list'))">

should do it :)