|
Post by Lei on Oct 14, 2019 15:21:13 GMT
I want to do some speech evaluation by the amazing psytoolkit. The listener should practice (block1) and then they can choose to practice again or start experiment (block2 & 3). I using radio and jump to control the flow just as the following code. But I found that if I choose to practice again, the $praOrstart would always be 1. It can't jump to block2 though I click start button. How to fix it? Thank you so much.
Besides, if I replace $ with &, it can be compiled but would breakdown when runing.
##### BLOCK 1 #################################
l: block1_question1
t: radio
q: Do you like rice?
- Yes
- No
- Do not know
##### start or practice #################################
l: praOrstart
t: radio
q: start or practice
- practice - start
l:
t: jump
- if $praOrstart == 1 then goto block1_question1
- if $praOrstart == 2 then goto block2_question1
##### BLOCK 2 #################################
l: block2_question1
t: radio
q: Do you like chololate?
- Yes
- No
- Do not know
##### BLOCK 3 #################################
l: block3_question1
t: radio
q: Do you like strawberries?
- Yes
- No
- Do not know
|
|
|
Post by PsyToolkit on Oct 15, 2019 8:56:09 GMT
Hi,
The surveys are not really designed to let you "loop". Although I can see why you want to do it, I think the survey software only wants each question to do only once.
So here is a solution, even though it is not the most elegant, but it would work.
First, decide how many loops you think a user would maximally need. For example, it may be 5 times maximally.
Then instead of loop, have 5 times the same question, with the option for people to skip. The same question should have a different "label" (that is, a different name following the "l:").
Hope that helps, let me know.
|
|
phone
New Member
Posts: 3
|
Post by phone on Oct 16, 2019 9:30:23 GMT
It is instructive and helpful. Thank you so much.
|
|