> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usekinetic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up Logic Rules

> Learn how to show different end screens based on how a user fills out your form using conditional logic rules.

Once you have created your multiple end screens, you need to set up **Logic Rules** to tell the form which screen to show to which user.

Logic rules are built on "If/Then" statements: *If* a user answers a question in a certain way, *then* show them a specific end screen.

<Note>
  If no rules are set up, or if a user's answers don't match any of the rules, the form will automatically show the [Default End Screen](/form-builder/end-screens).
</Note>

## Creating a Logic Rule

To begin creating logic rules, select the End Screen block in the form builder and click **⚙️ Configure End Screens**. Then, navigate to the **Logic Rules** tab at the top of the panel.

<Steps>
  <Step title="Add a New Rule">
    If this is your first time setting up logic for this form, the panel will be empty. Click the **+ Add Rule** button to create your first rule.
  </Step>

  <Step title="Select the Field (Question)">
    In the new rule block, use the first dropdown labeled "Field..." to select the specific question you want to base this rule on.

    * The dropdown will list your form's pages and the questions within them (e.g., "Page 1 > Multiple Choice Question 1").
  </Step>

  <Step title="Set the Condition">
    The next dropdown determines how the answer should be evaluated. Select either:

    * **is:** The user's answer *must match* the value you set in the next step.
    * **is not:** The user's answer *must not match* the value you set in the next step.
  </Step>

  <Step title="Choose the Value (Answer)">
    In the "Value..." dropdown, select the specific answer option that will trigger this rule.
  </Step>

  <Step title="Add Multiple Conditions (Optional)">
    If you need a rule to depend on more than one answer, click the **+ Add Condition** button located beneath your first condition. You can then choose whether these conditions should be evaluated with **AND** or **OR** logic:

    * **AND:** The user must meet *all* conditions in the rule to see the designated end screen. *(Example: If "Favorite Color" is "Red" AND "Size" is "Large", show the "Red/Large" end screen.)*
    * **OR:** The user only needs to meet *one* of the conditions to see the designated end screen. *(Example: If "Favorite Color" is "Red" OR "Favorite Color" is "Blue", show the "Cool Colors" end screen.)*
  </Step>

  <Step title="Assign the End Screen">
    Finally, use the "**Then show:**" dropdown at the bottom of the rule block to choose which end screen the user should see if they meet this condition.

    * This dropdown lists all the end screens you've created, using the highest-level heading (H1 or H2) from each screen as its title.
    * If an end screen doesn't have a heading, it will simply be labeled "Screen".
  </Step>
</Steps>

## Understanding Rule Hierarchy

If you have multiple rules set up, it's crucial to understand how they interact.

**Rules are checked in chronological order, from top to bottom.**

When a user submits the form, the system evaluates their answers against your rules starting with Rule 1. If their answers match Rule 1, they are shown that corresponding end screen, and the system stops checking any further rules.

If their answers *don't* match Rule 1, it moves on to check Rule 2, and so on.

### Reordering Rules

Because the system stops at the *first* matching rule, the order of your rules is important. You should always place your most specific or most important rules at the top of the list.

To change the order of your rules, simply drag them using the <Icon icon="grip-dots-vertical" /> icon on the left of the rule panel into your desired order.

## Deleting Rules

If you no longer need a specific logic rule, you can easily remove it. Simply locate the rule you want to delete and click the **Trash icon** located in the top right corner of that rule's panel.
