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

XF 1.4 if Condition for Node & Sub-Nodes

Discussion in 'XenForo Questions and Support' started by bloop, Jun 26, 2015.

  1. bloop

    bloop Member

    I'm trying to display an ad in a specific node and all its sub-nodes in total there are 22 sub-nodes.

    This is what I have and it works but I have to specify each sub-node and the condition statement is really long. Is there a better more efficient way of doing this that I'm unaware of? Like a condition that would cover all sub-nodes under a parent node instead of listing each one?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use an array - see the conditional statement guide in my signature.
    bloop likes this.
  3. bloop

    bloop Member

    totally missed the part about arrays. thanks for pointing it out. :)

Share This Page