# Conditional Logic

> How to add a conditional logic (branching) in MetaSurvey and create a quiz

Source: https://getmetasurvey.com/help/conditional-logic/

You can implement a conditional logic to create dynamic and interactive surveys that adapt to users' answers.

## How to Setup a Conditional Logic

1. Select a question for which you want to implement conditional logic.

1. Click **Logic** tab, then click **+Add logic**: ![Conditional logic](https://getmetasurvey.com/help/conditional-logic/sRjUmQvq7w9WME8Z2FoeSQpr68.webp)(width: 1520, height: 820)

1. In the condition settings, you can choose between **Answer** or an available [Calculated Field](https://getmetasurvey.com/help/calculated-fields/) (such as **Score**) as the condition type. For example: **IF Answer is Yes** (triggers the action if the respondent answers “Yes”). **IF Score = 1** (triggers the action when the **Score** calculated field reaches 1). ![Condition settings](https://getmetasurvey.com/help/conditional-logic/FcafGIxgrb6oVIH4eg5HBLtIo3g.webp)(width: 1520, height: 820) Add multiple conditions if needed to create more complex logic.

1. Once you set up the condition, use the **THEN** section to define the action(s) you want to take. In the action settings, you have two options: **Calculate**: Choose **Calculate** to update a **Calculated Field** based on the condition. For example: **Calculate Score + 1** adds 1 to the **Score** field when the condition is met. **Go To**: Choose **Go To** to navigate to a specific question based on the condition. For example: **Go To Q2** sends the respondent to Question 2 if the **Score** equals 1. ![Action settings](https://getmetasurvey.com/help/conditional-logic/QRCZfptFciu7zOUkQ1bVz5rBupo.webp)(width: 1520, height: 819) You can add multiple actions in a single logic block to perform both navigation and calculation tasks when the condition is satisfied.

## Logic for Displaying Different Outcomes

You can create multiple Thank You screens and direct users to them based on their answers:

![Select the logic action](https://getmetasurvey.com/help/conditional-logic/C9L6AMu559Oqfprou8j1gN9QI.webp)(width: 1520, height: 820)

## Logic for the “Other” Choice

If your multiple choice question has an **Other** option and you want extra details, add logic to show a text question (Single line or Multi line) when **Other** is selected.

Also add logic for when **Other** is *not* selected, so users skip the text question. Otherwise it may still appear:

![Multiple logics for Other choice](https://getmetasurvey.com/help/conditional-logic/nO7oamu4wOJFeIAnFpYzTNuDjA.webp)(width: 1520, height: 821)