USING CONDITIONAL FIELDS
You can now put a conditional field in a document, i.e. a field which uses an expression that evaluates to either TRUE or FALSE. If TRUE then the contents will be included. If FALSE, the contents will not be inserted in the document.
The format is as follows:
[[IF(condition)]]
Text goes here (including other Merge Fields) if this condition is TRUE
[[ELSIF(condition)]]
Text goes here (including other Merge Fields) if the first condition is FALSE and this condition is TRUE
[[ELSE]]
Text goes here (including other Merge Fields) if both conditions are FALSE
[[ENDIF]]
(See the White Paper “Using Conditions” for more information regarding Conditions)
Simple example
[[IF(MAT:ClaimAmount>100000)]]
This is a big claim. It must be heard in the High Court.
[[ENDIF]]
More complex example
[[IF(COL:CourtDate<GLO:TodaysDate)]]
We missed our court appearance on [[(FORMAT(COL:CourtDate,@D17))]]
[[ELSIF(COL:CourtDate=GLO:TodaysDate)]]
We are due in court today.
[[ELSE]]
We are due in [[IF(COL:CourtFlag='H')]]High[[ELSE]]Magistrate’s[[ENDIF]] Court on [[(FORMAT(COL:CourtDate,@D17))]]
[[ENDIF]]