API & Dynamic Content

How can I display part of a message depending on a custom field?


It is possible to display a chosen part of a message depending on the provided
custom field value, contact's Geo location or date. The code should be as follows:

 {{IF "conditions"}}
    text one
{{ELSIF "conditions"}}
    text two
{{ELSIF "conditions"}}
    text three
{{ELSE}}
    text four
{{ENDIF}}

Syntax rules:



  • Conditions are defined inside " (double quotes).

  • Every condition must obey atomic syntax (A operator B), where A and B may be
    contact custom field names, contact geo location tokens, date tokens (lowercased),
    constant values or other conditions.

  • Constants must be inside ' (single quotes), even numeric ones and cannot contain
    ' (single quotes), " (double quotes) and ` (backtick).


Order of tags:

{{IF "..."}} – Mandatory beginning of conditional statement.
{{ELSIF "..."}} – Optional block, multiple allowed.
{{ELSE}} – Optional default block, one allowed.
{{ENDIF}} – Mandatory closing of conditional statement.

For more information and examples please go to:
http://dev.getresponse.com/dc-doc/#conditions

Back To Frequently Asked Questions

Please wait...