incremental looping with piped text ? | XM Community
Skip to main content
Solved

incremental looping with piped text ?

  • June 11, 2019
  • 4 replies
  • 24 views

Forum|alt.badge.img+2
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

Best answer by TomG

@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.

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • Answer
  • June 11, 2019
@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.

Forum|alt.badge.img+2
  • Author
  • 8 replies
  • June 12, 2019
Many thanks for your reply but if N was user defined - how would this be set ?

Alok_Painuly
Level 2 ●●
Forum|alt.badge.img+4
  • Level 2 ●●
  • 35 replies
  • June 12, 2019
@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.

Forum|alt.badge.img+2
  • Author
  • 8 replies
  • June 21, 2019
many thanks both - sorted now