Documentation >> Conditionals >> users >> userIsMember
Conditional Macro: userIsMember
Operators:
Usage Notes
- This is a unary macro, it doesn't work with any standard |conditional operator|.
- In a web page, this macro will evaluate to true if the current user is a member of the site (conversation), and is logged in. Otherwise, it returns false.
- In email, this is how it works:
- If the site is in Single-Subscriber mode (using a mailing list), then it will return false because we have no way of knowing if the people reading the mailing list are all members of the conversation (some list servers might allow people to subscribe to the list directly, without ever interacting with Conversant).
- If the site is in Multi-Subscriber mode, then it will always evaluate TRUE. In this mode, copies of the message are rendered and mailed to each subscriber individually, thus we know for a fact that each person receiving the message is a member.
Examples
This example would show line 1 to Members, and line 2 to guests (anyone that hasn't logged in).
<!--#if condition="userIsMember"-->
1. You're logged in, so you're a member, and can see this line.
<!--#else-->
2. You're not a member, or haven't logged in, so this is what you see.
<!--#endIf-->
See the above code in action, here:
2. You're not a member, or haven't logged in, so this is what you see.
View in DG
|