Millisecond Forums

Aborting a batch using participant responses

https://forums.millisecond.com/Topic32210.aspx

By 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
By Dave - 9/8/2021

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