Aborting a batch using participant responses


Author
Message
jxb
jxb
Associate Member (284 reputation)Associate Member (284 reputation)Associate Member (284 reputation)Associate Member (284 reputation)Associate Member (284 reputation)Associate Member (284 reputation)Associate Member (284 reputation)Associate Member (284 reputation)Associate Member (284 reputation)
Group: Forum Members
Posts: 15, Visits: 163
Hello,

I know that in using /quit within an <expt > element, you can link a value to a response so that if a participant responds in a certain way to a question or trial, it will quit and end that <expt > element.

Is it possible to do something similar to this at the <batch > level (i.e., a certain response to a question will abort the entire batch of multiple scripts)?

Best,
jxb
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
jxb - 9/8/2021
Hello,

I know that in using /quit within an <expt > element, you can link a value to a response so that if a participant responds in a certain way to a question or trial, it will quit and end that <expt > element.

Is it possible to do something similar to this at the <batch > level (i.e., a certain response to a question will abort the entire batch of multiple scripts)?

Best,
jxb

Yes, you can call the script.abort() function to terminate an entire batch of scripts based on the response to a question or any other metric. See https://www.millisecond.com/support/docs/v6/html/language/functions/abort.htm and e.g. https://www.millisecond.com/forums/Topic26640.aspx


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search