Logic & branching

Build smart, adaptive surveys that respond to each respondent. Logic rules let you show, hide, or skip content based on previous answers — creating a personalized experience without overwhelming anyone with irrelevant questions.

SwiftSurvey — Logic & branching

Conditional visibility

Control when questions and sections appear using if-then conditions. Rules can evaluate any previous answer in the survey — from simple equality checks ("Show this question if answer equals 'Yes'") to complex combinations with AND/OR operators.

Supported conditions

  • Equals / Does not equal — exact match on choice questions
  • Contains — partial match on text or multi-select answers
  • Greater than / Less than — comparison on number or scale answers
  • Is answered / Is not answered — check if any answer was provided

Skip logic (branching)

Route respondents to different sections or to the end of the survey. Use skip logic for:

  • Qualifying questions — ineligible respondents skip to disqualification
  • Personalized paths — different sections for different segments
  • Early exits — satisfied customers skip to thank-you, unhappy ones get follow-ups

Setting up a rule

  1. Select a question or section in the builder canvas
  2. Open the Workflow tab in the builder toolbar
  3. Click Add rule and choose the condition type
  4. Select the source question and define your condition
  5. Choose the action — show, hide, or skip to a section
  6. Test in preview mode before publishing

Questions with active logic rules show a visual indicator in the builder canvas so you can see your survey's flow at a glance.

Quick links