incremental looping with piped text ?

seniorcseniorc Community Member Qubie ✭

incremental looping with piped text ?

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 Answers

  • TomGTomG Raleigh, NC Wizard ✭✭✭✭✭
    Accepted Answer

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

  • Alok_PainulyAlok_Painuly Guru ✭✭
    Accepted Answer

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

Answers

  • seniorcseniorc Community Member Qubie ✭

    Many thanks for your reply but if N was user defined - how would this be set ?

  • seniorcseniorc Community Member Qubie ✭

    many thanks both - sorted now

Sign In to Comment