Free-Conversant Support / Message Conditional Macro: msg.thread.noMessages
 Home   About Conversant   Free Sites   Hosting   Support   XML-RPC 

Search



Documentation >> Conditionals >> Messages >> Thread >> msg.thread.noMessages

Message Conditional Macro: msg.thread.noMessages

Operators

  • == (equal to)
  • != (not equal to)
  • greaterThan
  • greaterThanOrEqualTo
  • lessThan
  • lessThanOrEqualTo

Usage Notes

  • Tests the size of the thread (number of messages) containing the current message, comparing it with the |conditional value| on the right side of the |conditional operator|.

  • This is a numerical conditional, so the conditional value it's compared with must be a number.

Examples

In this example, the first line will be seen because the thread to which this message belongs contains more than ten messages.

<!--#if condition="msg.thread.noMessages > '10'"-->

1. This thread contains more than ten messages.

<!--#else-->

2. This hasn't been a very busy thread, there are ten or fewer messages in it.

<!--#endIf-->

See the above code in action, here:

1. This thread contains more than ten messages.
View in DG