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

Post Number Conditional?

Discussion in 'XenForo Questions and Support' started by ScottLott, Dec 7, 2011.

  1. ScottLott

    ScottLott Member

    I'm trying to setup a conditional statement that applies to an array of specific posts, I can't find what syntax to use for that.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Have you tried <xen:if is="{$postId} == x"> or <xen:if is="in_array({$postId}, array(x, y, z))">

    I haven't tested that though, so it may not be correct.
     
    Doctor and ScottLott like this.
  3. ScottLott

    ScottLott Member

    Worked perfectly! Thanks a million!
     

Share This Page