Demographic Trait reference logic
As you create your survey, you can manipulate survey presentation by using a combination of conditional show logic, balance logic, and other pathing logic, in combination with a variable like demographic traits. Here is the logic used to reference demographic traits in your survey.
Trait | Logic | Example |
Gender (binary) |
gender = "f" gender = "m" |
[Show if gender = "f"] |
Gender (non-binary) US, UK, CA only |
gender = "f" gender = "m" gender = "n" |
[show if gender = "n"] |
Age |
age = # age_range = #-# |
[show if age=18] [show if age_range="25-34"] |
Relationship Status |
relationship_status in "single" relationship_status in "married" relationship_statusin "widowed" relationship_status in "significantother" relationship_status in "engaged" relationship_status in "divorced" |
[show if relationship_status in "engaged"] |
Employment status |
employment="fulltime" employment="parttime" employment="freelancer" employment="student" employment="homemaker" employment="retired" employment="disabled" employment="unemployed" |
[show if employment = "student"] |
Education |
education_level = "nocollege" |
[show if education_level = "2yrdegree"] |
Career |
career = "acc/fin/bank" |
[show if career = "adv/design"] |
Race/Ethnicity* Learn more about US-based trait classifications Learn more about Race/Ethnicity logic |
race = "____" |
[show if race = "nativeamerican"] [show if race = "black"] |
Hispanic Origin (US only) Learn more about referencing Hispanic Origin |
hispanic = "yes" hispanic = "no" |
[show if hispanic = "yes"] |
Income* |
income = "0-25k" |
[show if income = "25k-50k"] [show if income = "EUR35-50k"] [show if income = "CNY100-150k"] |
Children in Household |
children = "0" children = "1" children = "2" children = "3" children = "4" children = "5+" |
[show if children =”0” or children = “1” or children = “2” or children = "3" or children = "4"] |
Child Age & Gender |
children_age_and_gender="boy 0-12m" children_age_and_gender="girl 2y" |
[show if children_age_and_gender = "boy 0-12m" or children_age_and_gender = "girl 0-12m" or children_age_and_gender = "boy 1y" or children_age_and_gender = "girl 1y"] |
*Race/Ethnicity and Income questions and their corresponding logic are dependent upon the fielding country's cultural norms.