Help Center / Tools nodes / Question Loop

Question Loop

Question Loop

Loop Settings

  • The loop start is an output port that can output to another node.
  • The loop end is an input port that can receive outputs from other nodes.

Random Variable Order

How to Use the Loop Node

  • First, set the variables that need to be fed into the loop. These variables must be options from nodes preceding the loop node.
  • Next, create the questions that need to be looped, embedding the set variables in the questions according to the variable setting rules.
  • After completing the above steps, connect the input port of the first question in the loop to the loop start of the loop node, and connect the output port of the last question in the loop to the loop end of the loop node, forming a closed loop.

Case Study 1

  • Multiple-choice question M1 lists four types of fruits: apples, bananas, watermelons, and oranges. Respondents can select multiple fruits they like.
  • For each fruit selected by the respondent in M1, multiple-choice question Q asks them about which aspects of the fruit they like, with options including taste, appearance, and freshness.
  • Since M1 is a multiple-choice question, respondents may select 1 to 4 fruits in M1. We must inquire separately about the taste, appearance, and freshness of each fruit, so we need to use a loop node and set multiple-choice question Q as a loop body node.
  • Add external loop variables in the loop node, selecting M1/Selected Options/Option Text, which represents introducing all options selected by the respondent in M1.
  • In the question content of Q, input "@" to open the variable panel and select Loop/Loop Text in the panel, which represents inserting the text obtained from the loop at the specified position, i.e., the options selected by the respondent in M1.

Case Study 2

  • Based on Case Study 1, add another question. After the respondent selects fruits and the aspects they like about the selected fruits, inquire individually whether the respondent would purchase more fruits solely because of a certain advantage of the fruit, without considering other factors.
  • We need to add a second layer of loop to the current loop, connecting the output of the first layer loop to the second layer loop. Add external loop variables to the second loop node, selecting Q/Selected Options/Option Text, which represents introducing all options selected by the respondent in the previous loop.
  • Connect multiple-choice question Q_1 to the second layer loop. In the question content of Q_1, input "@" to open the variable panel and select Loop_1/Loop Text in the panel, which represents inserting the text obtained from Loop_1 at the specified position.
  • In another position in the question content of Q_1, input "@" to open the variable panel and select Loop/Loop Text in the panel, which represents inserting the text obtained from the loop at the specified position.
  • It should be noted that the text obtained from the loop represents all fruits selected by the respondent, while the text obtained from Loop_1 represents all preferences of the respondent for the selected fruits. These two pieces of content together form the required question content.
  • Loop Text: References the text in the loop variable, which is the most commonly used method.
  • Loop Image: References the image in the loop variable.
  • Loop Index: The loop presents the same question multiple times, and the index value increments each time. The loop index value indicates the current number of loops.
  • Loop Value: References the score in the loop variable.
  • Loop Number: References the option number in the loop variable.
  • Loop Label: References the remark text in the loop variable.