TXTextControl.IfField Object

Represents an MS Word specific IFFIELD field. Is used as a parameter for the addMergeField method.

Introduced: 25.0.

Syntax

[JavaScript]
{
    expression1: <string>,
    expression2: <string>,
    trueText: <string>,
    falseText: <string>,
    operator: <integer>,
    preserveFormatting: <boolean>
}

Properties

Property Description
expression1 Specifies the first expression text that should be compared.
expression2 Specifies the second expression text that should be compared to Expression1.
falseText Specifies the text that should be displayed when the comparison is false.
operator Specifies the comparison operator.
preserveFormatting Specifies whether the field's formatting should be preserved.
trueText Specifies the text that should be displayed when the comparison is true.

See Also