Inline conditions are used within the Rich Text Editor and within the Free Text Heading Element. They can be used for AutoResponders, Notifications, Workflow Pages, Dynamic PDFs and Print Templates to conditionally display content. Inline conditions are for advanced users and provide an alternative to Conditional Content.
Using Inline Conditions
To use inline conditions, within the Rich Text Editor, you need to click the SOURCE code button in the top toolbar to switch to source code mode. Conditions are inserted in the form of HTML comments. If the condition matches, anything between the opening and closing comments will be included in the final output.
Below is an example of a simple inline condition. If the country field equals 'CA' then the text 'You are from Canada' would be displayed:
<!-- IF [Country Field] = 'CA' THEN You are from canada!-->
- There is no support for ELSE statements. Use multiple IF statements instead
- The end comment (closing tag) --> must be included, or an error will be generated
- In source code mode there is no way to insert wildcards from the wildcard menu, so you will need to know the names of the fields you are using when creating the statements