I’m creating an online experiment, where each participant would get their own unique conditions file. I’ve set it up using tips I found here in the forum, by dynamically naming the conditions file, based on the Participants’ ID.
I’d like to add a piece of code that would search for the .csv before reaching the loop, and in case it can’t find it it would load a default .csv file, that I will put there (just in case I mess up something, I like to have a contingency, so as to not crash the whole experiment).
conditions_filename = [‘s’ participant_id ‘.csv’];
default_file = ‘default_stim.csv’;
if ~isempty(dir(conditions_filename ))
conditions_filename = default_file
Any idea how I can achieve that with psychopy and pavlovia (so without importing any libraries)?