Documentation >> Conditionals >> Web Server >> requestIsReply
Conditional Macro: requestIsReply
Operators:
Usage Notes
- Tests to see if the current request is for a message-reply form (such as http://www.yoursite.com/777/reply).
- Returns false for anything that is not a browser-based /reply page.
- While it could be used anywhere, this conditional macro will probbaly be most useful in your message editing template (which is used for creating, editing, and replying to messages).
Examples
This example would show line 1 only on a message's /reply page as described above. Otherwise, it will show line 2.
<!--#if condition="requestIsReply"-->
1. If you see this text, then you must be replying to a message.
<!--#else-->
2. You're not looking at a message's /reply form, so this is the text you see.
<!--#endIf-->
See the above code in action, here:
2. You're not looking at a message's /reply form, so this is the text you see.
View in DG
|