The following configuration options should only be added by Xemplo Administrators familiar with advanced conditional logic and it's impacts. |
When required, you can add conditional text to a document using the Document Editor. Conditional text is a block of text that will only display if the value of a merge field available in the document meets a certain criteria. Conditional text can be added for Contracts, Documents or Letters.
To add conditional text, you must:
- Draft the text of the conditional statement using the appropriate merge fields and conditional text you wish to include in your document.
- Add the conditional statement to the body of your document using the Xemplo Document Editor.
Conditional Text Example
In the following example, we are optionally displaying additional text if the worker for which we are creating the document is an Independent Contractor (where the merge field <<EmployeeIsIndependentContractor>> = Yes).
To use this conditional statement in a document, the text must be added to the body of the document.
<<endcomparison>><<comparison:<<EmployeeIsIndependentContractor>>,=,Yes:>>
Independent Contractors are required to provide their business registration certificate
and proof of their valid business address prior to commencement. <<endcomparison>>
Tips when using conditional text
- Conditional text statements can only only use the '=' operator to evaluate a merge field e.g., you can only add conditional text when a merge field is equal to the value in the statement. No other operators are available.
- You can add multiple conditional statements to a single document.