You can use a template expression builder to conditionally display content in your generated agreement document. You can write a conditional expression using the expression builder; this expression is evaluated to include or exclude the conditional content. The expression builder can be used with clauses, sections, tables, or segments for their conditional rendering.

The expression builder has three main components or fields,

  • Fields are object fields. Fields lists all the available fields of the selected business object. It is a drop-down list which shows the field names listed according to their hierarchy. Each expression condition requires the identification of the field control to which the condition will apply.
  • Operator lists the logical operators for carrying out the logical operation.
  • Value is the value of the object field selected earlier. The value finishes the expression and is used to determine whether the condition evaluates to True or False.

Adding Filter Logic

The Expression Builder allows you to Add Row to add more expression conditions, where two or more conditions are joined in the overall expression by the Filter Logic. In the absence of a filter logic, the default relationship between the rows is the Boolean operator AND.

You can add up to nine rows of condition expressions which can be used in a single expression using the filter logic. 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). To add filter logic click Add Filter Logic and enter your logic in the field. Click Apply Logic to check whether your filter logic expression is correct. If your logic is incorrect, you'll see message in red.

Click Add to finalize your conditional expression.