• 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

akia

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

Code:
<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?

Ta
 

Chris D

XenForo developer
Staff member
#2
<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 :)