In aytm logic, references and aliases can be used in multiple ways, achieving a wide range of possible text and survey flow manipulations.
There are multiple ways you can omit writing multiple "and"/"or" operators. This can be done on one level (answers), or on multiple (both answers and subquestions, answers and questions, etc.).
Comma = AND
Comma can be used instead of writing repeating "X and X and X" sequence. The shortcut allows a faster alternative to repeating the same question and sub-question numbers.
Examples
- [show if Q1A1,3,5] - This is shorter and more convenient way of writing [show if Q1A1 and Q1A3 and Q1A5]. The element would be shown only if the answers A1, A3, and A5 were selected on the first question.
- [skip to Q5 if Q1A1,5 and Q2A1] - While the comma allows writing neat combination, if there's a need to add a different level, "and" would still have to be used. In this case the respondent skips to Q5 if they selected A1 and A5 from Q1, and the first answer from the second question.
|
Colon = AND
Colon symbol can be used instead of writing repeating "X and X and X" sequence of consecutive elements. The shortcut allows a faster alternative to repeating the same question and sub-question numbers, as well as it allows increased readability, as it only requires two numbers to reference the whole range
Examples
- [show if Q1A1:3] - This is shorter and more convenient way of writing [show if Q1A1 and Q1A2 and Q1A3]. The element would be shown only if the first three items were selected on the first question.
- [skip to Q5 if Q1A1:3 and Q2A1] - While the colon allows writing neat combination, if there's need to add a different level, "and" would still have to be used. In this case the respondent skips to Q5 if they selected A1 through A3 from Q1, and the first answer from the second question.
|
Dot = OR
Dot symbol can be used instead of writing repeating "X or X or X" sequence of elements. The shortcut allows faster alternative to repeating the same question and sub-question numbers.
Examples
- [show if Q1A1.3.5] - This is shorter and more convenient way of writing [show if Q1A1 or Q1A3 or Q1A5]. The element would be shown only if any of the answers A1, A3, and A5 were selected on the first question.
- [skip to Q5 if Q1A1.3 or Q2A1] - While the dot allows writing neat combination, if there's need to add a different level, "or" would still have to be used. In this case the respondent skips to Q5 if they selected A1 or A3 from Q1, or the first answer from the second question.
|
Dash = OR
Dash symbol can be used instead of writing repeating "X or X or X" sequence of consecutive elements. The shortcut allows omitting of repeating the same question and sub-question numbers, as well as it allows increased readability, as it only requires two indices to denote the whole range
Examples
- [show if Q1A1-3] - This is shorter and more convenient way of writing [show if Q1A1 or Q1A2 or Q1A3]. The element would be shown only if any of the first three items were selected on the first question.
- [skip to Q5 if Q1A1-3 or Q2A1] - While the dash allows writing neat combination, if there's need to add a different level, "or" would still have to be used. In this case the respondent skips to Q5 if they selected any of A1 through A3 from Q1, or the first answer from the second question.
|
Multi-level
It is also possible to shorten the logic for cases, when the same answers need to be checked on multiple questions or subquestions. The ranges can be applied on multiple levels of the hierarchy at once with the syntax as in Q1:3A1-2 and Q1SQ1.3.4A1-2. Any range operation can be used.
Examples
- [show if Q1:3A1-2] - This is shorter and more convenient way of writing [show if (Q1A1 or Q1A2) and (Q2A1 or Q2A2) and (Q3A1 or Q3A2)]. The element would be shown if at least one of the first two items was selected in each of the questions 1, 2, and 3.
- [show if Q1SQ1.3.4A1-2] - This is shorter and more convenient way of writing [show if (Q1SQ1A1 or Q1SQ1A2) or (Q1SQ3A1 or Q1SQ3A2) or (Q1SQ4A1 or Q1SQ4A2)]. The element would be shown if respondent made selection at least once in A1 or A2 in subquestions 1 or 3.
|