Closed level (AskiaAnalyse)

This feature allows you to create a new loop variable using the functions of AskiaScript.

Note: It is also possible to create loop questions automatically from the questionnaire tab.

To access this feature, in the edit menu select create a variable... and select closed level. Enter the name of the new variable in the caption box.

You can add responses to the loop, which would typically be for each question within the loop.

If you leave the script empty, this will create one level for each response. For multi-coded questions, this is as if the respondent had been through every iteration of the loop (so every item will have same number of respondents).

For more information on creating loops and multiple questions using scripts, see the Knowledge Base article Create Loops & Multiples by Script.
Note: It is possible to drag and drop variables from the question tree (i.e. the questionnaire tab in the left-hand pane) into the list of responses in the create variable dialog.

In this topic:

Creating a loop variable automatically

There is an easy way to create a loop variable automatically from the questionnaire tab. To do so:

  1. In the questionnaire tab, select all of the questions in the loop.
  2. Right-click and select create loop....

This creates a loop question of the type closed level, and a sub-question of the type closed by single script. Scripts are automatically generated for both. You can then edit the script to specify exactly which respondents are shown in the loop.

Editing the response list for the new variable

The following commands are available above the list of new responses:

Icon Name Effect

Insert

Insert a new response item.

Delete

Delete the selected response item.

Move up

Move the selected response item upwards in the list. You can also drag and drop responses into the desired sequence.

Move down

Move the selected response item downwards in the list. You can also drag and drop responses into the desired sequence.

Paste

Paste a response item from the clipboard (i.e. create a new response item as a duplicate of the last item copied).

Create your own Knowledge Base