incremental looping with piped text ? | XM Community
Skip to main content
Hello - iam new here but eager to learn !



Iam struggling to get to grips with a simple problem - how can i get questions presented for n times where n is a participant defined variable ?



So e.g., Q1 How many times have you done N ?



n=5



let n=1

Q2 please answer the Qs about N

Let n=1+1

does n=5

No then repeat

Yes then end



in Q2 N would increment from 1 to N



please help !



all the best



Carl
@seniorc,



Put "Q1 How many times have you done N ?" in a block before the loop & merge. Set up the loop & merge to have the maximum N value, then loop based off the question Q1.
Many thanks for your reply but if N was user defined - how would this be set ?
@seniorc - as @TomG mentioned, you will have to set maximum N value in the "Max Loops" option. You can limit/validate the value of N user is putting in Q1.



Ultimately you will have to let the tool know that these much loops are excepted, so that tool creates the data columns as per your max limit.
many thanks both - sorted now

Leave a Reply