fix info box formatting (compare keys), add info box (timeline reps and randomizing) - fixes #2783

This commit is contained in:
Becky Gilbert 2022-10-07 13:10:35 -07:00
parent 10930af331
commit f582dc914c

View File

@ -610,6 +610,13 @@ var test_procedure = {
repetitions: 5
};
```
!!! info
In a timeline variables procedure, when `randomize_order` is `true` and `repetitions` is greater than 1, the trial order will be re-randomized on each repetition through the `timeline_variables` array. This means that there will be some constraints on the randomization of all trials in the procedure.
For example, if a `timeline_variables` array contains one trial per stimulus, then the same stimulus could occur twice in a row (since it could be at the end of one repetition and the start of the next one), but it could not be repeated more than twice in a row, regardless of the number of repetitions.
If don't want to constrain the randomization in this way, you could use the `sample` parameter with the `fixed-repetitions` option: this will combine all the repeitions of your `timeline_variables` array into one larger array, and then randomize the whole thing. You can read more about the randomization, repetition, and sampling options for timeline variables in the [Timeline documentation](../overview/timeline.md)).
??? example "The complete code so far"
```html