Punch Logic
Use Punch logic to assign an answer or value to a respondent without requiring them to see a question. Punch logic allows users to "code" or categorize respondents by assigning them a value or answer to a question that can be used in analysis.
Punch logic is recommended for advanced aytm Logic users.
Placement and Syntax of Punch logic
Punch logic can be applied to question text or answer options using the following elements:
|
[punch reference, value_or_variable_or_logic_or_reference as value, |
Order of operations
The punch command is applied after show/hide logic (if any) and randomization.
|
Examples: |
Supported Question Types
Question Type | Value supported? | Comment Supported? |
Radio Button | No | Yes |
Checkbox | No | Yes |
Reorder and Side-by-side |
Yes (means order number) |
No |
Distribute |
Yes (mandatory; should be positive (>=0) and less or equal than question’s sum) |
No |
Stars | Yes (mandatory; should be in the stars range, e.g. 1-5 if 5 stars are used, or 0 if N/A enabled) | No |
Smiley |
Yes (mandatory; Value should be in one of the smile ranges: -1, 1, -1, 0, 1, -2, -1, 0, 1, 2 depending of smile count option; the midpoint smiley face is always 0. Left is negative and right is positive.) |
No |
Open Ended | No |
Yes (mandatory unless question is optional) |
Form | No |
Yes (mandatory unless question is optional) |
Instruction text/Video/Image | No | No |
Slider | No | No |
Progressive Matrix | No | Yes |
Use Case: Punch a Radio button question
Q9 will be used to segment respondents into two binary groups, based on their response to Q8. Punch logic is added to the answer options (binary groups) in Q9, so that though respondents will not see Q9, on the Results page, researchers will see the data recorded for quick filtering. |
Use Case: Punch a Reorder question
Respondents who select only one answer choice in Q4 should be automatically sent through Q5 without seeing the question, since they would have one option to rank. The answer choice they made in Q4 is automatically marked as their top rank in the data for Q5. |
Use Case: Punch a distribute (constant sum) question
Respondents who select only one answer choice in Q6 should be automatically sent through Q7 without seeing the question, since they would have one option to allocate a percentage. The one answer option they chose in Q6 is automatically given 100% in Q7 |