Documentation >> Conditionals >> Messages >> Thread >> msg.thread.noMessagesUnread
Message Conditional Macro: msg.thread.noMessagesUnread
Operators
- == (equal to)
- != (not equal to)
- greaterThan
- greaterThanOrEqualTo
- lessThan
- lessThanOrEqualTo
Usage Notes
- Tests the number of unread messages in the thread 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 line which will be shown depends on how many pages you've read from the thread containing the conditional macro docs.
<!--#if condition="msg.thread.noMessagesUnread >= '10'"-->
1. There are still at least ten unread messages in this thread.
<!--#elseif condition="msg.thread.noMessagesUnread > '0'"-->
2. There are still unread messages in this thread.
<!--#else-->
3. Congratulations, you've read all of the messages in this thread.
<!--#endIf-->
See the above code in action, here:
1. There are still at least ten unread messages in this thread.
View in DG
|