In aytm Logic, references and aliases can be used in multiple ways, achieving a wide range of text and survey flow manipulations.
How to Convert to Numeric Value
Append V to the end of a command to convert text into a number for further use in logic. The algorithm searches for digits until it hits a non-numeric character or the end of the text. If no number can be found, it returns 0.
For open-ended questions or questions with open-ended fields on individual items, the response can be converted to a number this way. We recommend using the Forms question type with a numeric mask (e.g. ###) to enforce numeric-only input.
For references using the positional modifier P, the system converts ordinal text to numbers: "first" = 1, "second" = 2, etc. This enables cleaner logic such as [show if Q5A5pv<4], which shows the element only if Q5A5 appeared in the top 3 positions. This numeric functionality is especially useful for question types that support numeric input: Distribute, Polarity Scale, Smileys, and Stars.
Common Use Case Examples
[Q1A1pv]— Q1 was a ranking exercise. Pipes the numeric position of A1 (e.g. 1, 2, 3).[skip to EXIT if Q1A1cv<18 or Q1A1cv>25]— Q1 was a Forms question enforcing numeric input. Redirects respondents out of the survey if their response was less than 18 or greater than 25.[show if Q1cv>0] You said you use shampoo [Q1cv] times a week— Q1 was an open-ended question. Shows the follow-up only if the respondent entered a number greater than 0, and pipes their answer into the text.[hide if Q5SQ1rv<10]— Q5 is a Distribute question allocating $100 across items. The next question is hidden if the amount allocated to the first item (branded toothbrush) was less than $10.You are in a good mood about these products. [show if Q8SQ1rv>0 and Q8SQ2rv>0]— Q8 is a Smileys question (5 smileys, coded -2 to 2). Shows only if both subquestions received a positive smiley.You said you find this product Calm. [show if Q9SQ1A1 and Q9SQ1rv>60]— Q9 is a Polarity Scale (0–100 each direction). Shows only if the respondent selected the Calm side (Q9SQ1A1) and dragged the slider far from center (value > 60).