Hi Elisa,
- No, it won't automatically account for that. You would have to change it yourself based on what a finished study constitutes. Is it completing all trials? Having a certain minimum accuracy? This is tricky, though, because as you say many people might start at the same time. There's no real way out of that other than spreading people over time.
Ah okay, I was thinking along the lines of someone starting the main part of the experiment, decide they do not want to participate any further and closing out of the experiment, therefore no result data would be published.
No, you would need two lines
var randomCondition = "A" (determined in some way)
jatos.studySessionData = randomCondition;
Sorry, I'm a bit confused here. Am I supposed to specify this for each possible condition at the end of the first script?
e.g.
var randomCondition = "A"
jatos.studySessionData = randomCondition;
var randomCondition = "B"
jatos.studySessionData = randomCondition;
I don't understand why you would need to have different component positions, as I thought that you wanted to have all conditions in a single component.
What you would need to do is have *on the script of the second component* what (I presume) you already have
Ah okay. I do have an if-statement ready in my second script that looks like so far
if(jatos.studySessionData == “A”){
timeline.push(//run these trials);
} else if(jatos.studySessionData == “B”){
timeline.push(//run these trials);
Would I just keep that section in the first script like this then:
$('#continueButton').click(function () {
var nextCondition = getNextCondition();
switch (nextCondition) {
case "A";
break;
case "B";
break;
case "C";
break;
case "D";
break;
case "E";
break;
case "F";
break;
}
with this section like so?
var conditions = [];
// Fill the array with conditions according to the counters
fillArrayWithValues(conditions, "A", conditionCounts.A);
fillArrayWithValues(conditions, "B", conditionCounts.B);
fillArrayWithValues(conditions, "C", conditionCounts.C);
fillArrayWithValues(conditions, "D", conditionCounts.D);
fillArrayWithValues(conditions, "E", conditionCounts.E);
fillArrayWithValues(conditions, "F", conditionCounts.F);
Thanks for your continued help (despite my novice skill in coding)! I appreciate you taking the time to help out.