Conditional Logic
Template builders can create more complex merge templates with Conditional Logic. Conditional Logic allows you to use one or more fields and operators to create blocks of text that can be hidden or shown depending if the parent record meets the criteria. This could allow you to make contracts and documentation for clients where different legal language may need to apply depending on the record a user is working with.
Note: More than one criteria can be used to create conditional logic statements.
- Navigate to the Drive Connect application in Salesforce and select the Template Builder tab.

- Create a new template or select an existing template to edit.
- In the merge field generator tab, click the Type drop-down and select Functions.
- In the Function dropdown, select Conditional Logic; this will bring up the criteria section.
- In the Field dropdown, select the field you are comparing data against.
- In the Operator dropdown, select an operator.
- In the Value field, enter a value.
- Copy and paste the conditional logic statement into the body of the document.
- Add any conditional text or merge fields into the designated area.