Experiment not working on Pavlovia: variable is not iterable (cannot read property undefined)

I think that “nothing to commit, working tree clean” means it couldn’t generate JS files.

I think that the reason for that is your function code in End Routine.

I recommend that you define functions in Before Experiment in the format:

Python

def function1(x): 
    if x == 31:
        x = 30
    elif x == 1:
        x = 2
    return(x)


JavaScript

function function1(x) {
    if (x === 31) {
        x = 30;
    } else if (x === 1) {
        x = 2;
    }
    return x;
}

Secondly, BlurStartSAMPLE is in your Excel file so don’t change its value in the code.