Control what content appears based on user responses.
Show or hide questions based on previous answers.
SHOW_IF: condition to conditionally hide/show questionsSHOW_IF: """ ... """NOT binds tighter than AND, and AND binds tighter than OR: a AND b OR c means (a AND b) OR c(age >= 65 OR age < 30) AND consent == Yesusage == Several weeks or moreusage == "Several weeks or more"Quote a value whenever it contains an operator character (+, -, *, /, >, <, =) or an UPPERCASE keyword (AND, OR, NOT, IS, IS_NOT, ...). Otherwise the parser applies it as an operator instead of treating it as part of the text.
Plain text needs no quotes:
usage == Several weeks or morestatus == EmployedA value containing an operator does:
code == "A+B" — not code == A+Bstatus == "Yes AND No" — not status == Yes AND Noplan == "Level > Basic" — not plan == Level > BasicQ: Do you have pets? - Yes - No VARIABLE: has_pets Q: What kind of pet? - Dog - Cat - Bird - Other SHOW_IF: has_pets == Yes
Do you have pets?
Use - SHOW_IF: to conditionally show or hide individual options based on previous responses.
- SHOW_IF: is placed as a sub-item under the option it controlsSHOW_IF:Q: Are you a business customer? - Yes - No VARIABLE: business Q: What type of account do you need? - Personal - Business - SHOW_IF: business == Yes - Enterprise - SHOW_IF: business == Yes
Are you a business customer?
What type of account do you need?
Display dynamic text based on variables and conditions.
{{IF condition THEN text ELSE text}} syntax for conditional textQ: Are you a student?
- Yes
- No
VARIABLE: student
Q: {{IF student == Yes THEN What is your major? ELSE What is your occupation?}}
TEXTAre you a student?
What is your occupation?
Test multiple variables with a common prefix at once.
STARTS_WITH prefix == value to test multiple variables with a common prefixSTARTS_WITH fraud == Yes checks all variables starting with "fraud"Q: Did you witness fraud? - Yes - No VARIABLE: crime_fraud Q: Did you witness theft? - Yes - No VARIABLE: crime_theft # **Follow-up** SHOW_IF: STARTS_WITH crime == Yes Q: Please provide details ESSAY
Did you witness fraud?
Did you witness theft?