Aborting a batch using participant responses


Author
Message
jxb
jxb
Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)
Group: Forum Members
Posts: 10, Visits: 90
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 (957K reputation)Supreme Being (957K reputation)Supreme Being (957K reputation)Supreme Being (957K reputation)Supreme Being (957K reputation)Supreme Being (957K reputation)Supreme Being (957K reputation)Supreme Being (957K reputation)Supreme Being (957K reputation)
Group: Administrators
Posts: 11K, Visits: 73K
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