Skip to main content
Skip table of contents

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 true, the host content control's contents remain, otherwise they are removed from the document and any other content commands in the host content control are disabled.

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.

CODE
if(opportunity.isClosed)
if(productName == 'Dynamo')
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.