Hello
I want to apply a small piece of code to check the expInfo for the session number, and if it is 3 then the participant can see the whole debrief message. I’m slowly learning coding, and I know from one of @Becca videos that you can use participant id to remind participants on the debrief page so it is building on that idea.
I am thinking that it must be something on the lines of
Well, I think I’ve done that ok for that part now (I kept getting a syntax error in the js window)
#creating a message variable
msg = ’ ’ #specifying the message to be shown
if expInfo[‘session’] == ‘3’:
msg = “This is the final task in the experiment. Thankyou for taking part in this task. This study, in which participants are asked to cblah blah blah”
Next thing is to code it so the screen previous terminates if the session is 1 or 2, but i am assuming I can simply do that with continueRoutine
Stream of my consciousness here, but if ther eise anything better I can do please let me know.
Your code looks perfect to me, I think this might be ab issue with your computer settings somehow using “curly” quotations instead of non curly - below if your same code but with the quotations replaced - does that work if you copy and paste it in?
#creating a message variable
msg = ' '
#specifying the message to be shown
if expInfo['session'] == '3':
msg = 'This is the final task in the experiment. Thankyou for taking part in this task. This study, in which participants are asked to cblah blah blah'