Logic Priority
Rules with higher priority override conflicting rules with lower priority. aytm Logic (1) is the highest.
- aytm Logic — rules described throughout the aytm Logic section
- Rabbits — navigation controlled by skips set up in the editor's UI (direct and random modes)
- Organic Flow — by default, questions are shown sequentially from first to last
Using Square Brackets
To display square brackets to respondents, use double square brackets. If you type [[optional]] in a field, the respondent will see [optional].
Case Sensitivity
aytm Logic is not case sensitive — [Q1I] behaves the same as [q1i].
Combining Commands
You can combine two or more logic commands, e.g. [show if Q2][hide if Q1A4][Q1i]. The system resolves each element independently and combines them with a logical AND operator:
- The system fetches the image from Q1.
- If the respondent saw Q2 and did not select Q1A4, the element is shown.
- If the respondent didn't see Q2 and selected Q1A4, the element is not shown.
- If the respondent saw Q2 and selected Q1A4, the system resolves "show" (true) AND "hide" (false) = hidden.
Parentheses can be used to group logic into chunks connected with and, or, and other operators — for example: [Q1i if (Q1A1 or Q2A1) and not (Q3A1 or Q4A1)].