URL of experiment: https://gitlab.pavlovia.org/pinartoptas/navontask
Description of the problem: I read my conditions.xlsx file at the beginning of the experiment using code component with the code below. At the beginning of each trial, I take the values of the first column row by row to determine the truth value of dummy loops that determine my trial type. I guess importing xlrd is not auto-translated to js and hence I got an error of -Unexpected token “*”-.
What is the best way to do the same thing in js, any suggestions?
Thanks in advance!
import xlrd path = "conditions.xlsx" inputWorkbook = xlrd.open_workbook(path) inputSheet = inputWorkbook.sheet_by_index(0)