Variable stimulus duration (or Interstimulus Interval) in Pavlovia

That’s useful to know, thank you! I am using the 2021 version and I’m sure I’ll find a solution. Something someone has suggested is to just define an ‘asarray’ function at the start which returns the input in the JS version. i.e.:

function asarray(name) {
return name;
}

I’m trying to do this but am getting an ‘Unhandled Internal Error’ when I try to sync it… do you know why this might be? Is there a problem with defining new functions in the Code_JS component at the start, am I doing something wrong, or could this be another bug in the 2021 version? (No worries if this is just something 2021-version-based)