Skip to content
Discussion options

You must be logged in to vote

After watching the tutorial: https://www.youtube.com/watch?v=LP7o0iAALik I understood the role of loops somewhat better.

SOLUTION

// TIMELINE: EXPERIMENT
var loop_counter = 1; // set global variable

var timeline_experiment = {
  // show the canvas-keyboard trials as defined above
  timeline: [trial],
  // Select a random set of stimulus words per participant
  // NOTE: sourced from `stimuli.js`
  // NOTE: specify function below so that is called only once each experiment.
  timeline_variables: sampleStimuli((n_unique = 3)),
  // Present the trials in a random order
  randomize_order: true,
  // NOTE: A loop is always executed once, so reduce desired number of repetitions by 1
  loop_func…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SHogenboom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant