psychopy.org | Reference | Downloads | Github

Bug? sequential loopType sorts array (online)

I got an array with numbers, e.g. array = [1, 5, 2, 4, 3]; I input the name of the array in ‘Selected rows’ in the loop properties; when sequential loopType is selected, stimuli is presented in the order 1, 2, 3, 4, 5. I believe this must be a mistake. If I first turn the array into a string, the stimuli is displayed in the order that I want, i.e. 1, 5, 2, 4, 3.

Therefore, in ‘Selected rows’, putting ‘$array.toString()’ fixes this problem.