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

XF 1.3 Compound Xen If Statements

Discussion in 'XenForo Questions and Support' started by TheComputerGuy, Mar 30, 2014.

  1. TheComputerGuy

    TheComputerGuy Active Member

    I'm trying to build an if statement for guests, the first post and not in some forums.

    I have the first post, and guests with this if statement
    <xen:if is="{$post.position} == 0 AND {$visitor.user_id}">

    xen:if is="!in_array({$thread.node_id}, array(y, z))"

    You can't overload with additional if statements.

    should I do an if statement inside an if statement?
    That wouldn't normally be a good thing to do.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It makes no difference.
    You can do nested if statements or you can do a single statement.
    Chris D likes this.

Share This Page