|
Post by Partenope on Dec 11, 2020 14:05:33 GMT
Hi everyone! I am creating a Survey, but I have a problem with the type jump when I have option {other}. In particularly, I have this Survey Script: l: Thinking t: radio q: Stavi pensando a qualcosa? - a nulla - pensavo a {other} - ero concentrato sul compito
l: Question_2 t: jump - if $Thinking == 1 then goto fine - if $Thinking == 3 then goto fine - if $Thinking == 2 then goto controllo
l: controllo t: info q: Ora vedrai una serie di altre domande
l: fine t: info q: Grazie per la partecipazione
¨¨ The problem is that when $Thinking == 2 (where I have option {other}) the jump does not working Is there any problem like an interference between jump function and the other option? Many thanks in advance
|
|
|
Post by PsyToolkit on Dec 17, 2020 14:21:08 GMT
Hi, thank you for reporting this. This is a "bug" in the software, and I will fix this in the next version. In the meantime, do this to solve your problem:
l: Thinking t: radio q: Stavi pensando a qualcosa? - a nulla - penso a qualcos'altro - ero concentrato sul compito
l: Question_2 t: jump - if $Thinking == 1 then goto fine - if $Thinking == 3 then goto fine
l: altro t: textline q: Penso a - Che cosa?:
l: fine t: info q: Grazie per la partecipazione
|
|
|
Post by stuart on Jan 3, 2021 22:29:18 GMT
Did this solution work for you? I am also having trouble with the jump command in surveys -- it doesn't seem to work anywhere.
|
|
|
Post by PsyToolkit on Jan 17, 2021 17:29:37 GMT
I tried it and worked. If you have a specific problem, please post the code or send it to psytoolkit@gmx.com, or post an error report.
If you have recently made a donation, please say so in the email. Because there are many emails, such emails get preferred processing, although I try to answer most emails (although board is preferred way for resolving issues).
|
|
|
Post by Partenope on Jan 19, 2021 14:32:08 GMT
Thank you very much. I have an other jump option that it doesn't work: I would like to assign randomly every participant to one condition (i.e. right condition and left condition); but then I would like them to maintain this condition through the experiment/survey, but it doesn't work: the software link participant always to the first condition I have scripted, altought participant had been assigned to the second condition.
This is the script:
l: randompart t: set - random 1 2
l: assegnation t: jump - if $randompart == 1 then goto exp1 # first option would mean RIGHT CONDITION - if $randompart == 2 then goto exp1sx # second option would mean LEFT CONDITION
l: exp1 t: experiment - {fullscreen} Exp1
l: PPPexpsx t: jump - goto probe1
l: exp1sx t: experiment - {fullscreen} exp1sx
l: probe1 t: radio q: What do you thinking about? - option 1 - option 2 - option 3
l: assegnation1 t: jump - if $randompart == 1 then goto exp2 - if $randompart == 2 then goto exp2sx
l: exp2 t: experiment - {fullscreen} Exp2
l: PPPOexpsx1 t: jump - goto probe2
l: exp2sx t: experiment - {fullscreen} exp2sx
l: probe2 t: radio q: What do you thinking about? - option 1 - option 2 - option 3
l: assegnation2 t: jump - if $randompart == 1 then goto exp3 - if $randompart == 2 then goto exp3sx
l: exp3 t: experiment - {fullscreen} Exp3
l: PPPOOOexpsx2 t: jump - goto probe3
l: exp3sx t: experiment - {fullscreen} exp3sx
l: probe3 t: radio q: What do you thinking about? - option 1 - option 2 - option 3
Is it possible to obtain the result that I would like to overcome? Thank you so much in advance
|
|
|
Post by matia on Jan 20, 2021 9:50:15 GMT
I have tried out your problem, and it works fine. See the code below:
l: choose_a_number t: set - random 1 2
l: t: jump - if $choose_a_number == 1 then goto proba1 - if $choose_a_number == 2 then goto proba2
l: proba1 t: radio q: Hello 1 - Hi - Whats up
l: jumpb t: jump - goto drink1
l: proba2 t: radio q: Hello 2 - Hi - Whats up
l: drink1 t: radio q: Favorite drink? - beer - water
l: jump2 t: jump - if $choose_a_number == 1 then goto proba11 - if $choose_a_number == 2 then goto proba22
l: proba11 t: radio q: Hello 11 - Hi - Whats up
l: jumpc t: jump - goto end_q
l: proba22 t: radio q: Hello 22 - Hi - Whats up
l: end_q t: info q: Thanks for your participation
It all works ok... Maybe give it couple of goes, because random generator doesn't work in a way that it always makes them into condition 1, then 2, 1, then 2, but it randomly picks between 1 and 2. It can be the case that you are just being misfortunate in couple of tries that keeps sending you to the condition 1.
Good luck, Matia
|
|
|
Post by Partenope on Jan 20, 2021 10:17:42 GMT
Hi Matia! Thank you so much for your aporting! I referred to the fact that once participant was assigned to condition 1 (in the first experiment I have embedded in the Survey), then the same participant was sent to condition 2 (in the second experiment I have put in the Survey), while I would like him to maintain the same condition
have you got any idea to perform that?
Thank you so much,
Deborah
|
|
|
Post by matia on Jan 20, 2021 15:13:29 GMT
Dear Deborah,
that is exactly what I tried to do. If you see my code, I assign them (only once) to condition 1 or 2 (depending on the choose_a_number; in your case it would be randompart). Once I have done that, they proceed to their respective tasks (group 1 to Hello 1 and Hello 11 - or, in your example exp1, exp2 and exp3; group 2 to Hello 2 and Hello 22, or in your example to exp1sx, exp2sx, exp3sx). I have even put a task in between that both groups respond to, in (drink1; in order to simulate your probe1 question)and then they proceed to their respective conditions.
All in all, your code should work. I can't find anything wrong with it. i have re-ran a code and confirmed that the program will do what you want it to do. See the code below (instead of experiment, since I don't have it, I've used info questions).
l: randompart t: set - random 1 2
l: assegnation t: jump - if $randompart == 1 then goto exp1 - if $randompart == 2 then goto exp1sx
l: exp1 t: info q: Hello 1
l: PPPexpsx t: jump - goto probe1
l: exp1sx t: info q: Hello 2
l: probe1 t: radio q: What do you thinking about? - option 1 - option 2 - option 3
l: assegnation1 t: jump - if $randompart == 1 then goto exp2 - if $randompart == 2 then goto exp2sx
l: exp2 t: info q: Hello 11
l: PPPOexpsx1 t: jump - goto probe2
l: exp2sx t: info q: Hello 22
l: probe2 t: radio q: What do you thinking about? - option 1 - option 2 - option 3
l: assegnation2 t: jump - if $randompart == 1 then goto exp3 - if $randompart == 2 then goto exp3sx
l: exp3 t: info q: Hello 111
l: PPPOOOexpsx2 t: jump - goto probe3
l: exp3sx t: info q: Hello 222
l: probe3 t: radio q: What do you thinking about? - option 1 - option 2 - option 3
|
|
|
Post by carla91n on Mar 12, 2021 9:03:43 GMT
Hi everyone!
I am creating a Survey, but I have a problem with the type jump. Particularly, I have this Survey Script:
l: consenso
t: radio
q:
<b> Cliccando sul tasto ACCONSENTO (riportato in basso) esprimo il mio consenso informato a partecipare allo studio” </b>
- ACCONSENTO
- NON ACCONSENTO
l: Question_1
t: jump
- if$consenso == 2 then goto fine
l: age
t: textline
o: require
d: <b> Età. Quanti anni hai? </b>
- {min=28,max=35,left=28,right=35}
l: fine
t: info
q: Grazie per la partecipazione
The problem is that when $consenso == 2 (NON ACCONSENTO) the jump does not working
Many thanks !! I hope you can help me!
|
|
|
Post by matia on Mar 12, 2021 11:28:30 GMT
You are missing space between if and $consenso
|
|