---
generated_by: surveylegend-page-markdown
title: Adding Rules to Logic Flows | SurveyLegend
description: This guide explains how to add IF rules to a logic flow and select
  the respondent answer or condition that triggers each rule.
canonical: https://www.surveylegend.com/user-guide/adding-rules-to-logic-flows/
---

How can we help?

Search our guides, features and best practices.

Search User Guide articles

Popular searches

![SurveyLegend mascot helping a new user learn how the online survey tool works](https://www.surveylegend.com/user-guide-media/hero/surveylegend-user-guide-help-mascot.avif)

# Adding rules to logic flows

Rules are the IF part of a logic flow. A rule describes which respondent answer or condition should trigger the logic.

**Rule example**

1. IF answer to the following question

   Do you want to receive our newsletter?

   is any of the following

   - Yes
   - No

2. THEN choose an action Add a consequence

The selected condition in the IF section decides when the THEN section should run.

[**NEXT:&#x20;**&#x41;dding consequences to a logic flow](https://www.surveylegend.com/user-guide/adding-consequences-to-logic-flow/)
