Millisecond Forums

Survey branching does not work

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

By aliciay1 - 6/8/2020

Hi, 

I am having trouble with the correct sequencing of my survey pages.
I currently have this:
<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

Where if the response to the first survey question is not the 1 of the 4 outlined (there are 6 response options total)  it should return to trial.SARTprepare. If it is one of those 4 options the survey continues. However, no matter what response option you click the survey continues, even if it is one of the options fulfilling the else rule. 

I have also tried this code below, based off another forum post suggestion. However I have the same problem. Could someone please tell me where I am going wrong? It cannot be that the survey page is branching to a different type of block (being trial) as this works fine for the affect survey page. 

Any help would be greatly appreciated. 

Thanks very much.
Alicia


<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>
<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>
By Dave - 6/9/2020

aliciay1 - 6/9/2020
Hi, 

I am having trouble with the correct sequencing of my survey pages.
I currently have this:
<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

Where if the response to the first survey question is not the 1 of the 4 outlined (there are 6 response options total)  it should return to trial.SARTprepare. If it is one of those 4 options the survey continues. However, no matter what response option you click the survey continues, even if it is one of the options fulfilling the else rule. 

I have also tried this code below, based off another forum post suggestion. However I have the same problem. Could someone please tell me where I am going wrong? It cannot be that the survey page is branching to a different type of block (being trial) as this works fine for the affect survey page. 

Any help would be greatly appreciated. 

Thanks very much.
Alicia


<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>
<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

/branch = [
  if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]

This is not valid syntax. It needs to read

/branch = [
if (radiobuttons.intentionality.response == "intentionally?" || radiobuttons.intentionality.response == "unintentionally?") surveypage.awareness]

and so forth for the other branches.
By aliciay1 - 6/9/2020

Dave - 6/9/2020
aliciay1 - 6/9/2020
Hi, 

I am having trouble with the correct sequencing of my survey pages.
I currently have this:
<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

Where if the response to the first survey question is not the 1 of the 4 outlined (there are 6 response options total)  it should return to trial.SARTprepare. If it is one of those 4 options the survey continues. However, no matter what response option you click the survey continues, even if it is one of the options fulfilling the else rule. 

I have also tried this code below, based off another forum post suggestion. However I have the same problem. Could someone please tell me where I am going wrong? It cannot be that the survey page is branching to a different type of block (being trial) as this works fine for the affect survey page. 

Any help would be greatly appreciated. 

Thanks very much.
Alicia


<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>
<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

<survey probe1>
/ pages=[1=stateofmind]
/ showbackbutton=false
/ screencolor = white
/ branch = [
if (surveypage.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") survey.mindwander else trial.SARTprepare
]
</survey>

<survey mindwander>
/ pages=[1=surveypage.intentionality; 2= surveypage.awareness; 3 = surveypage.content; 4=surveypage.temporalfocus; 5=surveypage.affect;]
/ showbackbutton=false
/ screencolor = white
</survey>

<surveypage stateofmind>
/questions = [1=stateofmind]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [if (radiobuttons.stateofmind.response == "Both focused on the current task and
something other than the current task" || "Mostly focused on something other than the current task" ||
"Completely focused on something other than the current task") surveypage.intentionality else trial.SARTprepare]
</surveypage>

<surveypage intentionality>
/questions = [1=intentionality]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/branch = [
    if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]
</surveypage>

<surveypage awareness>
/questions = [1=awareness]
/showpagenumbers = false
/showquestionnumbers = false
/showbackbutton = false
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/ branch = [if(radiobuttons.awareness.response == "aware that your mind was wandering?" || "unaware that your mind was wandering?") surveypage.content]
</surveypage>


<trial stop>
/ stimulusframes = [1 = stop]
/ ontrialbegin = [shape.backgroundcolour = white]
/ recorddata = false
/ timeout = 1000
/ branch = [if (values.startprobe=1) surveypage.stateofmind]
</trial>

<shape backgroundcolour>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
/ position = (50%,50%)
</shape>


<trial SARTprepare>
/stimulusframes = [1 = getReady]
/validresponse = (57)
/recorddata = false
/branch = [
    if (trial.SARTprepare.response == values.responsekey) trial.GETRED
]
</trial>


<surveypage content>
/questions = [1 = content]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.content.response == "The creativity test" ||
"Something about the environment / distractors in the room" || "Something else (personal concerns, future plans, fictional thoughts...)") surveypage.temporalfocus]
</surveypage>

<surveypage temporalfocus>
/questions = [1 = temporalfocus]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.temporalfocus.response == "To the past" || "To the present" || "To the future" || "No temporal focus") surveypage.affect]
</surveypage>

<surveypage affect>
/questions = [1 = affect]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/itemfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 1)
/showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/itemspacing = 20%
/ branch = [if(radiobuttons.affect.response == "Very positive" || "Positive" || "Neutral" || "Negative" ||"Very Negative") trial.SARTprepare]
</surveypage>

/branch = [
  if (radiobuttons.intentionality.response == "intentionally?" || "unintentionally?") surveypage.awareness]

This is not valid syntax. It needs to read

/branch = [
if (radiobuttons.intentionality.response == "intentionally?" || radiobuttons.intentionality.response == "unintentionally?") surveypage.awareness]

and so forth for the other branches.

Oh great, that is very helpful. Thank you so much.