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

Conditional "more than"

Discussion in 'XenForo Questions and Support' started by Diablotic, Mar 21, 2013.

  1. Diablotic

    Diablotic Active Member

    I am trying to create a conditional that will display an ad after the last post in the thread only if there is more than 3 replies in the thread.

    This is what I came up with:

    <xen:if is="({$post.position} % {$xenOptions.messagesPerPage} == {$xenOptions.messagesPerPage} - 1 OR {$post.position} == {$thread.reply_count}) AND {$thread.reply_count} !?more than?! 3"> 

    Simple as that:

      <xen:if is="({$post.position} % {$xenOptions.messagesPerPage} == {$xenOptions.messagesPerPage} - 1 OR {$post.position} == {$thread.reply_count}) AND {$thread.reply_count} > 3"> 
  2. cmeinck

    cmeinck Well-Known Member

    Thanks. This was a big help.

Share This Page