Documentation >> Conditionals >> Messages >> Creator >> name >> msg.creator.name
Operators:
- == (equal to)
- != (not equal to)
- greaterThan
- greaterThanOrEqualTo
- lessThan
- lessThanOrEqualTo
- beginsWith
- endsWith
- contains
Usage Notes
- Tests the full name of the creator of the current message, comparing it with the |conditional value| on the right side of the |conditional operator|.
- This is a standard text conditional. The full range of operators can be used with this conditional. Comparisons such as greaterThan and lessThan are based on the letters that make up the name. For example, "Darren" is greater than "Aaron", because the letter d falls after a in the alphabet.
- Other operators, such as beginsWith, endsWith, and contains, are "phrase based", meaning that the entire conditional value must appear in the body (at the beginning for the beginsWith operator, at the end for the endsWith operator, or anywhere in the body text for the contains operator). For example, "'Mark Aaron Drake' beginsWith 'Mark A'."
- This conditional is not case sensitive, meaning that "Frank" is equivalent to "frank".
- For further details on text conditionals, see the conditional documentation.
Examples
In this example, the first line will be seen because the name of the author of this message ends with "Dillingham".
<!--#if condition="msg.creator.name endsWith 'dillingham'"-->
1. This is yet another message written by a Dillingham.
<!--#else-->
2. This is one of the few messages not written by a Dillingham.
<!--#endIf-->
See the above code in action, here:
1. This is yet another message written by a Dillingham.
View in DG
|