Download page Making Clauses Condition-Based in a Template.
Making Clauses Condition-Based in a Template
You can use condition-based clauses in your template to make more customized and flexible contract templates. The condition for the condition-based clauses can be simple or complex expressions that you can make using the expression builder. The clause conditions are evaluated at the time of contract generation and the clause text is included in the generated document only if the associated condition resolves to True.
To add a condition to a clause
Open Microsoft Word and log in to X-Author for Contracts Advanced.
From the Contracts pane, click the Home button () and select Templates.
In the Templates pane, go to Work > Clauses.
The Clauses pane lists all the clauses present in your template. Select a clause from the list and click the settings icon () next to the clause name.
In the Properties pane, click Add Condition to open the template expression builder.
Create your condition expression on the Condition page. To create a conditional expression, enter values for the following fields:
Field - Select the field which you want to set as the criteria for the condition. You must select a field name. The fields are listed and grouped according to their hierarchy.
Operator - You must select the logical operator from the picklist. This forms the relationship between the field and its value.
Value - Enter the value of the named field.
Click Add row to create additional expressions for the same column. You can create up to a maximum of 9 filters for a single column.
Enter Custom Logic to add a logical relation between multiple rows. The supported filter logic operators are AND and OR. You can use parentheses for setting the precedence. For example, if you have five rows you can create a filter logic like (((1 AND 3) OR (2 AND 4)) AND 5). In the absence of custom logic, the default relationship between the rows is the Boolean operator AND.
Click Test to check whether your filter logic expression is correct. If your logic is incorrect, you will see a message in red.
Click Save to save the condition. The properties page shows the condition that you created.
Your clause is made conditional and you will see a success message. A lightning icon () is displayed next to the clause: click it to view the conditions added to the clause.