> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/ai-command-center/ai-business-users-governing-ai-use-cases/ai-command-center-assessments/working-with-assessment-templates/configuring-logic/create-logic-conditions.md). Agents can also search and read this documentation through its [MCP server](https://docs.collibra.com/~gitbook/mcp).

# Create a logic condition for a question or page

You can create [logic conditions](https://docs.collibra.com/ai-command-center/ai-business-users-governing-ai-use-cases/ai-command-center-assessments/working-with-assessment-templates/configuring-logic.md) in your template through the [**Template designer**](#through-the-template-designer) or [**Template logic**](#through-the-template-logic) tab. Any logic that you configure on the **Template designer** tab appears on the **Template logic** tab, and vice versa.

## Prerequisites

You have a [global role](https://docs.collibra.com/ai-command-center/terminology.md) with the **Assessments** > **Manage templates** [global permission](https://docs.collibra.com/ai-command-center/terminology.md).

## Through the template designer

{% stepper %}
{% step %}
Open the templates page, and then click a template.
{% endstep %}

{% step %}
Click the question for which you want to create a logic condition.
{% endstep %}

{% step %}
In the **Assessment Settings**, expand the **Logic** settings.
{% endstep %}

{% step %}
In the **Visible if** section, click ![](https://172513724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRUJ2Awbxzd1UAaQbb7Dc%2Fuploads%2Fgit-blob-e099c23a3e47dfad2953c8a26e3ced7fa5293c40%2Fassess-icon-banyan-logic-wizard.png?alt=media), to open the logic condition wizard.\ <i class="fa-chevrons-right">:chevrons-right:</i> The **Visible if** dialog box appears.
{% endstep %}

{% step %}
Click **Select...**, and then select the question to which the user's answer can trigger the action.

{% hint style="info" %}
The questions are ordered alphabetically, not in the order of which they appear in the template.
{% endhint %}
{% endstep %}

{% step %}
Click **Equals / All of**, and then select a logical operator.

{% hint style="info" %}
Not all logical operators are applicable to all question types.
{% endhint %}
{% endstep %}

{% step %}
Enter or select the relevant value or values.
{% endstep %}

{% step %}
Optionally, to add another logic condition, click **Add Condition**, and then:

1. Select **and** to add an inclusion condition, or select **or**, to add an exclusion condition.
2. Click **Select...**, and then select the question to which the user's answer can trigger the action.
3. Click **Equals / All of**, and then select a logical operator.
   {% endstep %}

{% step %}
Click **Apply**.
{% endstep %}
{% endstepper %}

## Through the template logic

{% stepper %}
{% step %}
Open the templates page, and then click a template.
{% endstep %}

{% step %}
Click the **Template Logic** tab.\ <i class="fa-chevrons-right">:chevrons-right:</i> A list of all logic conditions configured for the template is shown.
{% endstep %}

{% step %}
Specify the conditions:

1. Click **Add New Rule**.
2. In the **Select...** field, select the question to which the user's answer can trigger the action.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The questions are ordered alphabetically, not in the order of which they appear in the template.</p></div>
3. Click **Equals / All of**, and then select a logical operator.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Not all logical operators are applicable to all question types.</p></div>
4. Enter or select the relevant value or values.
   {% endstep %}

{% step %}
Optionally, to add another logic condition, click **Add Condition**, and then:

1. Select **and** to add an inclusion condition, or select **or**, to add an exclusion condition.
2. Click **Select...**, and then select the question to which the user's answer can trigger the action.
3. Click **Equals / All of**, and then select a logical operator.
   {% endstep %}

{% step %}
Specify the action that occurs if the conditions are met:

1. Click **Select action...**, and then select an action type.
2. Click **Select question...**, and then select the question that will be affected if the conditions are met.
   {% endstep %}

{% step %}
Optionally, click **Add Action**, to specify another action that should occur if the conditions are met.
{% endstep %}

{% step %}
Click **Done**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The logic condition rule or rules that you created are shown.
{% endstep %}
{% endstepper %}
