Learn about different types of branch behavior for your logic

You can determine how each branch should behave when condition(s) match. This will affect the way your form responds to the branch.

Branches in form builder

In this article we showed how to add branches to your form. One of the items we addressed over there was branch behavior. Let's take a deeper look into that.

Types of branch behaviors

Switching the branch behavior.

To determine how a branch should behave when one or more conditions match, you can select the right branch behavior. To do so, you click the green square at the top of a branch. Now you can choose from different branch behaviors, which we'll describe in detail below:

  • For the first condition match;
  • When all conditions match;
  • For each condition match (iteration).

For the first condition match

The default behavior of branches is to follow the branch if at least one of the conditions matches.

Sidenote: Professionals would call this a logical OR statement.

For example:

  • If the respondent selects the 'Other...' option at the dropdown question 'Question 1', then show this branch (also see this help article);
  • If the respondent selects 'Option A' or 'Option B' at the multiple choice question 'Question 2', then show this branch (also see this help article).
  • If the respondent selects 'Option C' at the dropdown question 'Question 3' or gives a 'lower than 3 star rating' at the rating question 'Question 4', then show this branch (also see this help article).

Example of a branch with a first condition match.

When all conditions match

This behavior follows the branch if all the conditions match.

Sidenote: Professionals would call this a logical AND statement.

For example:

  • If the respondent selects 'Option A' and 'Option B' at the multiple choice question 'Question 2', then show this branch (also see this help article);
  • If the respondent selects 'Option A' at the multiple choice question 'Question 2' and has entered a valid email address at the email address question 'Question 5', then show this branch (also see this help article);

Example of a branch with an all condition match.

For each condition match (iteration)

This behavior follows the branch for each condition match. This will create an iteration of the branch.

Sidenote: Professionals would call this a FOR statement.

For example:

  • If the respondent selects one or multiple options at the checkboxes question 'Question 5', then show this branch for each of the selected options (also see this help article);
  • If the respondent selects one or multiple options at the multiple choice question 'Question 6', then show this branch for each of the selected options (also see this help article).

Example of a branch with an each condition match.

Video tutorials

We have made some video tutorials on how to use branches. It shows where to do this in the form builder and what options you have.

Video tutorial on simple logic
Video tutorial on branch logic
Video tutorial on advanced logic

Use these helplines if you have any questions, problems or requests