Free-Conversant Support / Conditional Macro: convId
 Home   About Conversant   Free Sites   Hosting   Support   XML-RPC 

Search



Documentation >> Conditionals >> general >> convId

Conditional Macro: convId

Operators:

  • == (equal to)
  • != (not equal to)

Usage Notes

  • Tests the id of the current conversation, comparing it to the |conditional value| on the right of the |conditional operator|.

  • This conditional macro is especially useful when you are sharing templates and messages between conversations, with the #insertTemplate and #insertMsg macros.

  • In a request from a web browser, the 'current conversation' is the one that contains the page that was requested.

  • In email, the current conversation is the one that contains the message being mailed out.

Examples

This example will show line 1 if the ID of the current conversation's is "calendarDemo", line 2 if it is "support", and line 3 for all other cases.

<!--#if condition="convId == 'calendarDemo'"-->

1. This page is part of the Event Calendar demo.

<!--#elseif condition="convId == 'support'"-->

2. This page is part of the Free-Conversant Support Site.

<!--#else-->

3. This page isn't on not on either the the calendar demo or the support sites.

<!--#endIf-->

See the above code in action, here:

2. This page is part of the Free-Conversant Support Site.
View in DG