Inquisit batch with conditional?


Author
Message
anabela_c
anabela_c
Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)
Group: Forum Members
Posts: 23, Visits: 75
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
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
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



anabela_c
anabela_c
Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)Respected Member (320 reputation)
Group: Forum Members
Posts: 23, Visits: 75
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!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search