Quick Setup: Conditional Logic With Microsoft Templates (DOCX, PPTX, XLSX)
Learn how to use RENDER statements in DOCX templates with bracketed Microsoft template syntax.
Quick setup for conditional logic in DOCX templates
Basic pattern
[<!--RENDER=logical_expression -->]
content to show if expression is true
[<!--ENDRENDER-->]Basic example
[<!--RENDER='{{!Opportunity.StageName}}' == 'Closed Won' -->]
Closed amount: [{{!Opportunity.Amount #,###.##}}]
[<!--ENDRENDER-->]AND and OR logic
AND
OR
Nested conditional logic
Two levels
Three levels
CONTAINS and NOT CONTAINS
When to use template logic
Best for
Less ideal for
Related articles
Last updated
Was this helpful?

