Hello:)
I’m new to PsychoPy and have close to zero knowledge about coding.
What are you trying to achieve?:
In my experiment I would like to skip some routines when a certain excel cell in my trial sheet contains an “XXXXX”, using an “if” JAVA script.
I couldn’t figure out how to direct the script to read the desired excel column.
What did you try to make it work?:
Tryin to avoid referencing the excel column directly from the script, I added a text component that accesses this column and displays its text (for 0s). Then I tried to reference the text component using this code:
if (text_12 === “XXXXX”) {
continueRoutine = false;
}
*I copied this “if” code from another part of the experiment, where it worked well referencing a keyboard response. It is located in the “each frame” tab in a code component.
I guess it isn’t written correctly because when trying to pilot the experiment on Pavlovia I got the following error message:
- ReferenceError: XXXXX is not defined
Any help will be greatly appreciated!!