Logic and branching
Use logic to create targeted paths and reduce respondent fatigue.
Covers conditional logic, branching rules, and display logic. Includes examples of skip logic, nested branching with AND/OR rule groups, and tips to keep flows maintainable.
Steps
- Open branching rulesClick a question in the editor, then look for the branching or logic options. You can add rules that evaluate previous answers.
- Set conditions with AND/OR groupsCreate rule groups using AND (all conditions must match) or OR (any condition matches). Nest groups for complex logic.
- Use display logicDisplay logic shows or hides a question based on previous answers. This is different from branching, which changes the overall flow path.
- Combine with AI interview modesAI interviews support an "AI decides" question mode where the AI chooses when to stop asking follow-ups based on your guidance criteria. This complements branching logic by letting the AI control depth within a single interview question.
- Validate with the flow canvasUse the survey flow canvas to visualize all branching paths and ensure there are no dead-ends.
Branch respondents based on previous answers to ask relevant follow-ups and skip irrelevant sections. QuestionPunk supports AND/OR rule groups for complex conditions.
Display logic lets you show or hide individual questions without changing the overall flow. Branching rules redirect respondents to entirely different sections.
For adaptive depth within a single question, AI interviews support an "AI decides" mode where the AI determines when it has enough information and stops probing. You configure minimum/maximum follow-ups and stopping guidance.
Test all branching paths thoroughly using the preview and synthetic testing to avoid dead-ends.