Conditional Logic
Show or hide elements in your document based on the data being merged.
There may be cases where you want to optionally include or exclude certain parts of your template in your document. Documint allows you to do this with Conditional Logic.
For example, let's say we were creating a contract template and only wanted to include certain legal language if the contract total was over $15,000. We could accomplish this by adding the condition (when grand_total
is greater than or equal to
15000
) to the section with the legal language using the Logic Editor.
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F384378337-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fd8kT8JyAYrYZzsWpQoqK%252Fuploads%252F5UIBdXk4kEBMG2w8tpeG%252Fimage.png%3Falt%3Dmedia%26token%3D96df0341-d93d-43c5-bd98-e6fddf00c8f9&width=768&dpr=4&quality=100&sign=feccf96a&sv=1)
This condition tells Documint to only display the section element and all of its children in the document being created when the value of grand_total
is equal to or greater than $15,000.
Last updated