How does a pavlovia experiment generates the participant ID´s in the running mode?

Hi guys,

i am very new when it comes to psychopy and pavlovia. I already made up my experiment and uploaded it to pavlovia.org. In the pilot mode it works perfectly fine now but I am not sure if this is the same for the running mode.

I have a code component which puts id´s with an even id into one group and participants with an uneven id into another group.

This is the code: (javascript):

let teilnehmer_id = expInfo[‘participant’];
let letzte_ziffer = parseInt(teilnehmer_id.slice(-1));

if (letzte_ziffer % 2 === 0) {
gruppe = 0;
video_file = “res/BhramariPranayamaVideo.mp4”;
} else {
gruppe = 1;
video_file = “res/StillesSitzenVideo.mp4”;
}

Will this work in the running mode as well? How is the ID generated in the running mode? I didn´t find any informations about this online.

I will have roundabout 90 participants so I don´t want to put in the participant ID manually in every link.

I hope someone can help me. Thanks in advance!

Dear student,

The participant ID is generated via the field in Properties → Experiment info.

And here is what this looks like in coder:

You can change that default configuration if you’d like.

Hopefully that answers your question!

Issac

If you would like equal numbers of odd and even participants, you could use one of my online tools.

Thank you wakecarter, that helps a lot! Have a nice day:)