---
title: "Manage rules in a decision table"
slug: "manage-rules-in-a-decision-table"
abstract: "Overview of how to add and manage rules in decision tables."
---
# Manage rules in a decision table

When you add a rule to a decision table, you add inputs and outputs. The input you enter is the true or false condition that must be met in order for the output to be returned. The [input type you can enter](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-decision-tables-in-sitecore-personalize/using-input-columns-in-a-decision-table.html "Using input columns in a decision table") depends on the type you selected when you configured the input column. For example, if you selected the guest data option when configuring the input column, a list of inputs to select from displays within the **Input** field.

> [!note]
> Before you can add rules to a decision table, you must [create the decision table](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-decision-tables-in-sitecore-personalize/create-a-decision-table.html "Create a decision table") and configure the input and output columns.

To add rules to the decision table:

1. On the **Decision Table** tab, click the **Add Rule** link.
2. In the new row that displays in the **Input** column, you can configure the input using these options:
    - **Use a default operator** - click the **Input** column, select an operator, and enter one or more input values.

        ![Click the Input column to select an operator to match the entered input.](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/DecisionTableInputOperators.png)

        - **Match one of** - compares the input to a list of specified values and returns a match if any value in the list matches. For example, validate guest emails by entering approved addresses like *john.doe@gmail.com*, *jane.doe@gmail.com*.
        - **Match anything except** - ensures the input does not match any value from a specified list. For example, exclude email addresses like *guest1@gmail.com*, *guest2@gmail.com*.
        - **Match if contains** - verifies that the input partially matches all specified substrings. For example, match all guest emails that include both *gmail.com* and *john*, such as *john.doe@gmail.com*.
        - **Match if does not contain** - confirms that the input does not contain all specified substrings. For example, exclude all emails that include *gmail.com* and *john*.
    - **Enter input value manually** - double-click the **Input** column to enter or edit a value. You can manually input a specific value, a logical expression, or use conditional operators, such as `&&` and `||`, as needed.

        ![Double click the Input column to manually enter or edit a value.](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/DecisionTableInputExpressionwithOR.png)

3. Click the **Output** column of the new row.
4. In the dialog that displays, enter an output. The [output type you can enter](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-decision-tables-in-sitecore-personalize/using-output-columns-in-a-decision-table.html "Using output columns in a decision table") depends on how you configured the output column.

    If you [connected an offer knowledge source](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-knowledge-sources-in-sitecore-personalize/use-offers-in-a-decision-model.html "Use offers in a decision model") to the decision table, a prepopulated list of offers displays for selection.

5. Press Enter. The output you entered displays in the row of the **Output** column.
6. Click **Save**. You can continue adding rows, as required.