Concepts: Conditional Fields

The conditional IF field adds true or false text under a specific condition.

Conditional IF Fields

Text Control's reporting engine MailMerge compares two values and inserts the text appropriate to the result of the given comparison. The first expression must be a Merge Field name. On merging the document, the MergeField value is compared to the second expression in order to insert the appropriate text value. The format of the field is shown below:

{ IF Expression1 Operator Expression2 TrueText FalseText }

The following operators are supported:

  • Equal to
  • Not equal to
  • Greater than
  • Less than
  • Greater than or equal to
  • Less than or equal to

To insert a conditional field, choose IF from the Insert Special Field drop-down box of the Reports ribbon tab. Type in the field name, conditions and the true and false text and confirm with OK.


Related events: