Forum Replies Created
-
AuthorPosts
-
AY-Osaka
ParticipantThank you very much for your answer!
Yes, the jump-command is just what I wanted!AY-Osaka
ParticipantHi, may I ask you another related question?
(Everything you told me was perfect, and I am using them. But, I have another need)
I want to collect the results even for those who cannot continue to the last.
This is because I want to get the IP-address, so I can track and rule out such insincere participants in future tasks.To this end, I tried to write the following code by making a dummy timer that is intended to allow me to use the SendResults() function, but this does not work at all.
Do you mind telling how to fix this?Thank you so much in advance for your help!
AY
Header( newVar("error_count",0) // set the initial value to 0 .global() // make sure the Var element is global .test.is(v=>v<3) // the value should be below 3 .failure( // if not, then block the script here newTimer("timer1", 1) .start() .callback( SendResults() ) .wait() , newText("Sorry, too many mistakes. The end.").center().print() , newButton().wait() // will wait forever ) , defaultScale.button().print().wait() )
AY-Osaka
ParticipantThis is amazing!
Thank you so so much for your assistance!!Best,
AY
AY-Osaka
ParticipantHi, can I also continue asking a question.
I have tried to incorporate your suggestion to the template for my filler items. And I prepared the following code, which does not seem to be the right answer unfortunately.Can you tell me how I fix this?
Best,
AY
——————————————————-
Template( "filler.csv" //File containing the filler items, which has the column "correct_answer" to specify the true answer for the dummy element. , row => newTrial( row.type , newText("instruction", "Press the space key to continue.") .center() .print() , newKey(" ") .wait() , getText("instruction") .remove() , newController("AcceptabilityJudgment", {s : row.sentence , presentAsScale: true , as: [["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"]] , showNumbers: false , hasCorrect: Number(row.correct_answer) , randomOrder: false , leftComment: "Grammatical" , rightComment: "Ungrammatical" }) .test.selected(row.correct_answer).failure(getVar("error_count").set(v=>v+1)) // I added the test command here, but this does not seem to be the right solution... (without this command, the experiment is successfully implemented. .css("text-align", "center") .center() .print() .log() .wait() ) .log("item", row.item) .log("cond", row.cond) .log("group", row.group) .log("id", getVar("ID")) );
AY-Osaka
ParticipantThank you so much for writing up a code for me!
This is really helpful! -
AuthorPosts