<values>/ myinteger = 0/ repeatcount = 0</values><block myblock>/ trials = [1=getinteger]</block><surveypage getinteger>/ ontrialend = [values.myinteger = textbox.integerquestion.response]/ questions = [1=integerquestion]/ showpagenumbers = false/ branch = [surveypage.repeat_i_times]</surveypage><textbox integerquestion>/ caption = "Enter an integer between 1 and 5"/ range = (1,5)</textbox><surveypage repeat_i_times>/ ontrialend = [values.repeatcount += 1]/ caption = "This page will be repeated i times"/ branch = [if (values.repeatcount < values.myinteger) surveypage.repeat_i_times]</surveypage>