|
Post by Partenope on Jan 27, 2021 21:45:43 GMT
Hi everyone! I have two conditions (DOC_ASSOCIAZIONI_1 and DOC_ASSOCIAZIONI_2) but I have a problem when I want to randomize participants' conditions assignement: This is my script: l: COUNTERBALANCING_ESPERIMENTO t: set - random 1 2 l: ASSEGNAZIONE_ESPERIMENTO t: jump - if $COUNTERBALACING_ESPERIMENTO == 1 then goto Esperimento_Associazioni1 - if $COUNTERBALACING_ESPERIMENTO == 2 then goto Esperimento_Associazioni2 l: Esperimento_Associazioni1 t: experiment - {fullscreen} DOC_ASSOCIAZIONI_1l: alwaysjump t: jump - goto end l: Esperimento_Associazioni2 t: experiment - {fullscreen} DOC_ASSOCIAZIONI_2But participants were always assigned to condition one (DOC_ASSOCIAZIONI_1), even when the variable "COUNTERBALANCING_ESPERIMENTO" had reported two in the datafile. Attachments:
|
|
|
Post by matia on Jan 29, 2021 7:56:23 GMT
Dear Partenope,
you are missing an "N" in $COUNTERBALA N CING_ESPERIMENTO both when is 1 and 2 so the Psytoolkit is ignoring it since it doesnt recognize what you are telling it to do.
|
|
|
Post by Partenope on Jan 29, 2021 9:10:24 GMT
Thank you very much Matia...I didn't see the problem and that was driving me crazy xD Thank you, have a nice day
|
|
|
Post by Partenope on Jan 29, 2021 9:16:34 GMT
Furthermore I was sure that if it didn't recognize what I am writting it would return an error message rahter than to ignore so, but great to hear! Thank you
|
|
|
Post by matia on Jan 29, 2021 13:47:11 GMT
I think there must be some programmatic reason why it doesnt warn you for spelling. On the other hand, program doesn't see a problem with your code since jump is just, well, a jump and not a task, and there is an actual task following it. Perhaps it is a feature, rather than a bug (for example, you don't have to delete jumps when copying someone's experiment, but you can just delete the variable used for determining when to jump Best, Matia
|
|
|
Post by PsyToolkit on Jan 31, 2021 19:08:07 GMT
Maybe this is just a suboptimal parsing. I will put this on the list of issues that need to be addressed for the next release of PsyToolkit.
|
|