I would like to make a function that returns some code and am struggling to do so.
function getpresent (place) = {
type: "single-stim",
stimulus: getword(place),
is_html: true,
timing_stim: 250,
timing_response: 2000,
response_ends_trial: false,
};
This is what I have right now, but it is not working. I need something like...
function getpresent (place) = {
RETURN [
type: "single-stim",
stimulus: getword(place),
is_html: true,
timing_stim: 250,
timing_response: 2000,
response_ends_trial: false,
],
};
Is this just a syntax thing? Or is what I'm trying to do just fundamentally flawed? Thanks!
function getpresent (place) = {tryfunction getpresent (place) { return {and end it with a}