Conditional branching in batch files


Author
Message
charlotterae
charlotterae
New Member (40 reputation)New Member (40 reputation)New Member (40 reputation)New Member (40 reputation)New Member (40 reputation)New Member (40 reputation)New Member (40 reputation)New Member (40 reputation)New Member (40 reputation)
Group: Forum Members
Posts: 3, Visits: 9
My study has a number of exclusion criteria. I start the study by first checking for these exclusion criteria, in a file called ‘demographics.iqx’.

I then want to use their report to either continue or abort the study.

For example, if a participant responds ‘yes’ to the question ‘do you have a sleep disorder’, I want to skip over all the questionnaires in my study, and take them to a ‘goodbye’ page with info about sleep disorders.

If they respond ‘no’, I want to present them with my sequence of .iqx files.

i.e. something like

<batch>
/ file = “demographics.iqx”
if radiobuttons.sleepdisorders.response == 1 in the demographics_summary.iqdat then
/ file = “goodbye.iqx”
</batch>

<batch>
/ file = “demographics.iqx”
if radiobuttons.sleepdisorders.response == 2 in the demographics_summary.iqdat then
/ file = “questionnaire1.iqx”
/ file = “questionnaire2.iqx”
/ file = “questionnaire3.iqx”
</batch>

Is there some sort of equivalent to <branch> or <skip> that you can use in a batch file?

With many thanks

Charlotte Rae

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
charlotterae - 4 Years Ago
Dave - 4 Years Ago
charlotterae - 4 Years Ago
Dave - 4 Years Ago
Dave - 4 Years Ago
                         Hi Dave, Great, thanks - this is working. I am hitting one more snag...
charlotterae - 4 Years Ago
                             I don't know, not seeing that. I suspect your Inquisit 5 installation...
Dave - 4 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search