ClauseBuddy
Quality LibTruffle HuntSmart TemplatesDoc AnalysisCompareAdmin
  • Welcome!
  • Getting Started
    • Quick Start Videos
    • System Requirements
    • Installation
    • Accessing the app
    • Enterprise deployment
    • Logins
    • Frequently Asked Questions
    • Encountering problems?
    • Help & Support Center
  • Quality Library
    • Searching Clauses
      • Overview
      • Searching by keywords
      • Browsing Folders
      • Filtering clauses
      • Inspecting clauses
    • Using Clauses
      • Inserting clauses
      • Configuration
    • Drafting Clauses
      • Creating clauses
      • Drafting the body of a clause
      • Smart placeholders
    • Custom styling
      • ClauseBuddy layout structure
      • Heading pane
      • Body text pane
      • Document title pane
      • Template detection pane
    • FAQ
      • How to create a new folder when you add a new clause?
      • How do I fill out a placeholder when adding a clause to a document?
      • How do I change a folder name?
      • How can I change the location of a clause in the library?
      • How do I delete a folder?
      • What’s the difference between green and purple clauses?
      • Why are not all attributes visible as filters?
      • When do I apply a status to my clause instead of an attribute?
      • How can I create my own attributes?
      • What is the difference between the Quality Library and the Truffle Hunt?
      • How can I avoid duplicating clauses when adding to the library?
  • Inspiration
    • Introduction
    • Truffle Hunt: clauses
    • Truffle Hunt: documents
    • Managing Truffle Hunt baskets
    • Process results with AI
    • Compliance
    • Samples Hunt
    • AutoSuggest
    • FAQ
      • Samples Hunt
        • From which database does Samples Hunt get its info?
      • Truffle Hunt
        • Can ClauseBuddy read and retrieve clauses from scanned documents?
        • How do I go to the document containing the found clause?
        • What is the difference between the strict and non-strict option when searching for clauses?
        • What's the best way to search for clauses in Truffle Hunt?
        • Is a clause modification in Truffle Hunt permanent?
        • Can you search multiple baskets at once?
        • Can you edit properties of documents in bulk such as doc title or year?
        • Can I store multiple clauses from Truffle Hunt in the Quality Library at once?
        • Is there a quick way to upload an open document to Truffle Hunt?
        • How can I update party names in a clause without manually overwriting?
        • What happens when I upload a duplicate clause or duplicate document to Truffle Hunt?
      • AutoSuggest
  • Generative AI
    • Introduction to GenAI
    • Write & Rewrite
    • Smart Merge
    • Doc Chat
    • Multi-document Table
    • Semantic Search
    • Compose Document
    • Custom LLMs
    • FAQ
      • Doc Chat
      • Compose Document
      • Write & Rewrite
        • Where does the AI get its inspiration?
        • Can I train the AI to match our company's spelling and style?
        • Can I save frequently used prompts to apply them faster?
        • How do I write good AI prompts?
      • Summarise
  • Document Analysis
    • Definitions
    • Proofreading
    • Reviewing: introduction
    • Reviewing: building rules
    • Running reviews
    • Checklists
    • Bracketeer
    • FAQ
      • Proofreading
        • Can I add my own custom checks to Proofreading?
      • Definitions
      • Document Reviewing
        • How come the Review document feature is not visible in my overview?
        • What do I name my review category?
        • What exactly do the questions do and what are they for?
        • Do requirements within a review category affect each other?
  • Operations
    • Text Compare
    • Bulk Compare
    • Bulk Operations
    • Deep Compare
  • FAQ
    • Text Compare
    • Bulk Compare
    • Bulk Operations
  • Smart Templates
    • Quick Tutorial: Smart Templates
    • Smart Templates in depth
      • Highlighting Word documents
      • Creating cards and questions
      • Conditions for cards & questions
      • Conditional text
      • Conditional rows, columns, sections & blocks
      • Template settings
      • Sharing templates
      • Tips when using Word
      • Comparison with Clause9
      • Integrations
      • Bulk create
      • Advanced drafting techniques
    • FAQ
      • Why is it that some users cannot see the ‘Templates’ feature?
      • Are Templates cross-platform?
      • Can I insert conditional images?
      • How do I update a template?
      • Why does the interactive preview sometimes fail to show numbering correctly?
      • How can I make a clause with multiple paragraphs conditional more efficiently?
      • How can I change the type of a question when creating a Smart Template?
  • Administration
    • Preferences
    • Managing folders
    • Managing attributes
    • Managing users
    • Linked Accounts
    • Managing access-bundles
    • Write & Rewrite
    • Export templates
    • External subscriptions
    • Access Matrix
    • Consult ClauseBuddy Usage Statistics
    • FAQ
      • I lost my login code!
      • Can I set-up a personal library for an individual user?
      • How do I delete a user?
      • Can I give someone else access to the admin account?
      • If I add a subscription, can this person see it and is my subscription also added to him?
      • I have access to ClauseBuddy, do I also have access to Clause9?
      • Is there 2 factor authentication for ClauseBuddy?
      • Can we choose which LLM is applied in ClauseBuddy?
Powered by GitBook
On this page
  • Shared conditions
  • Benefits
  • Types of conditions
  • Sub-conditions
  • Copying & pasting conditions
Export as PDF
  1. Smart Templates
  2. Smart Templates in depth

Conditions for cards & questions

PreviousCreating cards and questionsNextConditional text

Last updated 10 months ago

Every card, question and predefined answer can be subjected to one or more conditions. Those conditions can be configured by selecting the card/question/predefined answer, and changing settings at the right side of the screen.

Conditions "flow down": if a card's condition is not met, then the entire card will be hidden (with all the questions in that card). Similarly, if a question's condition (or its card's condition) is not met, the entire question will be hidden, with all the predefined answers.

If a question is not shown — either because its own condition is not met, or because its card's condition is not met — then its answer will be considered "void" and will not be assigned to the corresponding placeholder.

Shared conditions

Shared conditions can be configured through the "Conditions" menu item at the top of the template editor.

Benefits

Complex templates may involve many different questions, which may themselves involve many different conditions that define how all cards, questions and predefined answers interact with each other.

You will quickly notice that some conditions will be repeated several different times. For example, if you are creating a template for a service contract, you may want to create certain subquestions that only appear when the user is ordering at least 25 items of type X, or at least 50 items of type Y, and the total amount of such order exceeds 900 EUR.

While copying & pasting a complex conditions is quite easy to do — it involves just a few mouse clicks —it's usually not a great idea, as such conditions tend to change over time. If, for example, the minimum order amount would be changed to 950 EUR, then you may have to hunt through all the cards and questions to search for conditions that refer to that amount. This can become quite time-consuming and error-prone.

A better idea is to create a shared condition. In the shared condition editor, you can give a name to a condition, and then refer to that condition inside cards, question or predefined answers.

If you then have to change a shared condition, you should then only make the change in one central location.

Types of conditions

Conditions are always configured in a similar way — whether you are dealing with a shared condition or the condition of a card, question or predefined answer. Essentially, you select the relevant item (card, question, predefined answer or shared item) and then configure the condition at the right side of the screen.

When you click on the green + Condition button, you get a dropdown menu from which you can choose one of the following condition types:

  • Answer to question. Make a condition that is dependent on the answer to a certain question. Depending on the question type, different types of conditions can be formulated:

    • the answer to a yes / no question can be "true" or "false"

    • the answer to a single text question is a piece of text, that can be checked for equality, inequality or (not) having certain text fragments

    • the answer to a text question with multiple answers can also be checked for including one or more specific answers

    • the answer to a (decimal) number or currency can be checked for equality, in equality, greater than or smaller than

    • the answer to a date can be checked for equality, inequality, or being before or after some other date

    • the answer to a duration can be checked for equality, inequality or being longer or shorter than some other duration

  • Question enabled? Make a condition that depends on whether a certain question is enabled (which will be the case when that question and card either do not have a condition attached to them, or those conditions are indeed met).

  • Card enabled? Make a condition that depends on whether a certain card is enabled (which will be the case when that card either does not have a condition attached to it, or such conditions is indeed met).

  • Mandatory questions?. Make a condition that depends on whether all mandatory questions are (not) met.

  • Shared condition. Make a condition that depends on the outcome of another, shared condition. Because that shared condition can on its turn depend on another shared condition, which can depend on yet another shared condition, and so on, you can create incredibly powerful conditions.

Sub-conditions

Each condition can host any number of sub-conditions, which can on their turn refer to their own sub-sub-conditions — any level deep.

  • You can create a sub-condition by clicking on the green + Subgroup of conditions button.

  • The interact between the sub-conditions is configured through the surrounding dropdown-list, that can be set to all, any or none.

For example, assume that a certain card X should only be shown when either product A or product B is selected, while simultaneously the court of Paris selected in some other question. Card X should, however, always be shown when some other card Y is visible — even when some other product or some other court is selected — except in the very specific circumstance that card Z is visible.

Such complex condition can be modeled as follows:

Copying & pasting conditions

When you hover your mouse over the set of conditions for a card/question or over an individual condition, the copy button at the right side will become visible.

Having clicked the copy button, the paste button will become visible as well. Clicking it will paste the (set of) condition(s) that you copied in the location that you indicated.

Shared conditions also allow you to create complex logic that can be used for defining the behaviour of the text within your template, .

as further explained in the page on conditional text