Skip to main content

Grammar

Basic Grammar

DescriptionKeyword
QuestionQ1
OptionQ1A1
Matrix Sub-question/Matrix Fill-in RowQ1S1
Matrix Sub-question Option/Matrix Fill-in ColumnQ1S1A1
Consecutive QuestionsQ1~4
Consecutive OptionsQ1A1~4
Consecutive Matrix Sub-questionsQ1S1~4
Conditional Statementif...then...
Answer Countlen Q1
Answer Positionindex Q1A1
Comment# This is a comment, it won't be executed
Year2020
Year-Month2020-10
Year-Month-Day2020-10-24
Hour:Minute10:24
Year-Month-Day Hour:Minute2020-10-24 10:24
note

When question numbers are consecutive for 3 or more items, they will automatically be converted to the form 1~3 after page refresh, for example:

Q1, Q2, Q3 # Combined into Q1~3

If there are fewer than 3 items or they are not in sequential order, they won't be combined:

Q1, Q2 # Not combined as there are fewer than 3 consecutive items
Q1, Q3, Q2 # Not combined as items are not in sequential order

Operators

DescriptionKeyword
Logical ANDand
Logical ORor
Logical NOTnot
Logical Grouping()
Greater Than>
Greater Than or Equal To>=
Equal To==
Less Than<
Less Than or Equal To<=

Actions

KeywordDescriptionExample
hideHide question or optionhide Q1
showShow question or option (see notes below)show Q1
branchBranch logic for question flow (commonly used in screening questions)if Q1A1 then branch from Q1 to END
replaceReplace question contentreplace "XXX" in Q2 title with Q1
shuffleRandom orderingshuffle Q1A1~3
random showRandom selectionrandom show 1 from Q1~3 weight by 1:1:2

Functions

KeywordDescriptionExample
RANDBETWEENGenerate a random integerRANDBETWEEN(1,Q1)
LANGGet respondent's languageLANG()