Okay, let me think about it.
My first idea:
You have the script that at the moment calculates something like this
3,1,5,8
which means, you display question 1 (1) of the first group AND question 1 (5) of the second group.
If you only calculate two out of 4 like
3,2
and show the questions of group A IF they are IN this list
and the questions of group B IF they are NOT IN this list
These relevance equations
Question 1A: strpos(Q0,"1")>0 -> not displayed
Question 2A: strpos(Q0,"2")>0 -> displayed
Question 3A: strpos(Q0,"3")>0 -> displayed
Question 4A: strpos(Q0,"4")>0 -> not displayed
Question 1B: strpos(Q0,"1")==0 -> displayed
Question 2B: strpos(Q0,"2")==0 -> not displayed
Question 3B: strpos(Q0,"3")==0 -> not displayed
Question 4B: strpos(Q0,"4")==0 -> displayed
1. Ergebnis-Beispiel
2. Ergebnis-Beispiel
And the sample survey.
Joffm