Millisecond Forums

Inquisit batch with conditional?

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

By anabela_c - 10/29/2021

Hi Dave,

I need to display two files (separate because one contains personal data that cannot be part of the same dataset):

<batch>
/ file = "Experiment.iqx"
/ file = "Personal_data.iqx"
</batch>

The problem is that if a participant wants to abort the 'Experiment' by pressing ctrl+Q, the 'personal_data' that is linked to a completion code will be displayed anyway, so participants will be able to have access to the completion code without real participation.
I already have included a 'values.completed = 1' at the end of 'Experiment' that maybe can be used as input for a conditional to display the file "Personal_data"? Or is there another option to prevent this to happen?

Thanks in advance!
Anabela
By Dave - 10/29/2021

anabela_c - 10/29/2021
Hi Dave,

I need to display two files (separate because one contains personal data that cannot be part of the same dataset):

<batch>
/ file = "Experiment.iqx"
/ file = "Personal_data.iqx"
</batch>

The problem is that if a participant wants to abort the 'Experiment' by pressing ctrl+Q, the 'personal_data' that is linked to a completion code will be displayed anyway, so participants will be able to have access to the completion code without real participation.
I already have included a 'values.completed = 1' at the end of 'Experiment' that maybe can be used as input for a conditional to display the file "Personal_data"? Or is there another option to prevent this to happen?

Thanks in advance!
Anabela

You can try something using batch values and parameters, i.e. send the completion status from the first script over to the second script and conditionally /stop or abort() the latter on that basis.

https://www.millisecond.com/support/docs/v5/html/howto/batchparameters.htm
https://www.millisecond.com/support/docs/v5/html/language/attributes/stop.htm
https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm


By anabela_c - 10/29/2021

Dave - 10/29/2021
anabela_c - 10/29/2021
Hi Dave,

I need to display two files (separate because one contains personal data that cannot be part of the same dataset):

<batch>
/ file = "Experiment.iqx"
/ file = "Personal_data.iqx"
</batch>

The problem is that if a participant wants to abort the 'Experiment' by pressing ctrl+Q, the 'personal_data' that is linked to a completion code will be displayed anyway, so participants will be able to have access to the completion code without real participation.
I already have included a 'values.completed = 1' at the end of 'Experiment' that maybe can be used as input for a conditional to display the file "Personal_data"? Or is there another option to prevent this to happen?

Thanks in advance!
Anabela

You can try something using batch values and parameters, i.e. send the completion status from the first script over to the second script and conditionally /stop or abort() the latter on that basis.

https://www.millisecond.com/support/docs/v5/html/howto/batchparameters.htm
https://www.millisecond.com/support/docs/v5/html/language/attributes/stop.htm
https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm


it worked perfectly, thanks a lot!