Conditional Logic In Microsoft Templates (DOCX, PPTX, XLSX)
Use the correct square-bracket syntax for RENDER blocks and merge fields in DOCX templates.
Core rules
Basic pattern
[<!--RENDER='{{!Opportunity.StageName}}' == 'Closed Won' -->]
This opportunity is closed won.
[<!--ENDRENDER-->]Show conditional content with a merge field
[<!--RENDER='{{!Contact.Phone}}' != 'NULL' -->]
Phone number: [{{!Contact.Phone}}]
[<!--ENDRENDER-->]Use AND and OR
Use nested render blocks
Common fixes
Keep going
Last updated
Was this helpful?

