Skip to main content

Question Display Logic

Control question visibility using AND, OR, and NOT logic combinations

Basic Display Logic

Show the next question when a specific option is selected

Example

Q1. Which messaging app do you use most frequently? [Single Choice] Q1

  • A. QQ Q1A1
  • B. WeChat
  • C. Weibo

Q2. Why do you use QQ most frequently? [Text] Q2

Custom Logic

if Q1A1 then show Q2

Preview

Tip

When showing or hiding multiple questions, options, or sub-questions under the same condition, you can write them in one line separated by ,, like if Q1 then show Q2, Q3, Q4A1

Multiple Display Logic

Example

Q1. Which messaging app do you use most frequently? [Single Choice] Q1

  • A. QQ Q1A1
  • B. WeChat
  • C. Weibo

Q2. Why do you use QQ most frequently? [Text] Q2

Q3. What suggestions do you have for QQ? [Text] Q3

Custom Logic

You can write it in one line, separating questions with ,

if Q1A1 then show Q2, Q3

Or split into multiple lines

if Q1A1 then show Q2
if Q1A1 then show Q3

Preview

NOT Logic

Show a question when a specific option is NOT selected

Example

Q1. Which messaging app do you use most frequently? [Single Choice] Q1

  • A. QQ
  • B. WeChat
  • C. Weibo Q1A3

Q2. Why don't you use Weibo most frequently? [Text] Q2

Custom Logic

if Q1 and not Q1A3 then show Q2 # Show Q2 when Q1 is answered and option C is not selected

Preview

Combined Conditional Logic

Combine multiple conditions using AND, OR, NOT operators

Example

Q1. Which messaging apps do you use? [Multiple Choice] Q1

  • A. QQ
  • B. WeChat Q1A2
  • C. Weibo

Q2. How long do you spend on messaging apps daily? [Single Choice] Q2

  • A. Less than 10 minutes Q2A1
  • B. 1 hour
  • C. More than 1 hour

Q3. Why do you use WeChat less than 10 minutes per day? [Text] Q3

Custom Logic

if Q1A2 and Q2A1 then show Q3 # Show Q3 if WeChat is selected and usage time is less than 10 minutes

Preview

Tip

You can combine and, or, not operators and parentheses () to create complex conditions

Language-Based Display Logic

Example

Q1. What communication tools do you use? [Multiple Choice] Q1

Q2. Which communication tool do you use? [Multiple Choice] Q2

Custom Logic

if LANG() == "zhs" then show Q1 # Show Q1 if respondent's language is Chinese
if LANG() == "en" then show Q2 # Show Q2 if respondent's language is English

Language Codes

LanguageCodeLanguageCode
Simplified ChinesezhsEnglishen
Traditional ChinesezhtJapaneseja
KoreankoGermande
FrenchfrRussianru
PortugueseptIndonesianid
TurkishtrSpanishes
ThaithVietnamesevi
HindihiItalianit
DutchnlSwedishsv
DanishdaPolishpl
FinnishfiGreekel
RomanianroCzechcs
CatalancaSlovaksk
UkrainianukCroatianhr
BulgarianbgKazakhkk
Tip

LANG() can be used as a condition to control the display of questions (Q1), options (Q1A1), matrix rows (Q1S1), and matrix columns (Q1A1)