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

Conditional "more than"

Diablotic

Active member
#1
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:

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

Simple as that:

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