if (DOCX)
A Word content command that makes the contents of its host content control conditional. This command may be placed into any kind of content control.
This command has a priority of 1000.
Syntax:
if(test)
Attributes
#1 - test | ||
---|---|---|
Required | Value type | EL-evaluated |
Yes | Boolean | Yes |
Defines the conditional expression. Should the resolved value be a Boolean |
Examples
Wrap a content control with if around document contents of any kind that you wish to make conditional. Either use a variable resolving into a Boolean, or type a conditional expression in directly.
if(opportunity.isClosed)
if(productName == 'Dynamo')