1. 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

Discussion in 'XenForo Questions and Support' started by akia, Aug 2, 2012.

  1. akia

    akia 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?

  2. Chris D

    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 :)
    akia and Jake Bunce like this.
  3. akia

    akia Well-Known Member


Share This Page