When dealing with large sets of answer options, it may come in handy to group these. Suppose you are asking for the jurisdiction - from which you may later derive whether EU or non-EU law is applied. One possibility would be to work with a lot of duplicated conditions resulting in a large and complex module. Fortunately, there are better ways to deal with such a situation.
In order to have a clear and manageable module, you can group these different jurisdictions into EU-member states and non-member states. This grouping approach can be implemented in three ways:
Solution: Use Calculation Actions (or Values)
You can use Calculation Actions, attributing a numeric value to each group of answers.
In order to do so, you set-up – comparable to Scoring – a base variable called ‘Country Group’ before the ‘Jurisdiction’ question, which remains empty.
Then you introduce two calculation nodes after the question related to ‘Jurisdiction’. Both nodes will carry the same name as the base variable. They don’t represent new variables, but update the base variable ‘Country Group’. One of these updated variables will be set to 0 (for all EU-member states), the other one to 1 (for non-EU states).
Furthermore, the transition going into the nodes ‘EU-member States’ and ‘Non-EU States will be set to the respective conditions (see image to the right).
When using this variable ‘Country Group’, e.g. to enrich a transition with additional logic, you simply set the condition to ‘Country Group = 0’. The value indicates that all EU-member states are referred to.
Solution: Use Textblock Values
The second approach is based on Textblock value nodes. Similarly to Scoring, a base variable is created. To do so, you may create a Textblock value before the question related to ‘Jurisdiction’, name it ‘Country Group’ and leave it empty. Furthermore, two Textblock values are added after the ‘Jurisdiction’ question – all three nodes carrying the same variable name. They don’t represent new variables, but update the base variable ‘Country Group’, illustrated by the two circular arrows.
Each of these secondary Textblock value will contain a specific string of text – either ’EU-Member States’ or ’Non-EU States’.
Each transition into the secondary ‘Country Group’ Textblock values will be defined with the respective conditions (see image).
When using this variable ‘Country Group’, e.g. to define a transition’s condition, you simply set the condition to ‘Country Group ⊃ EU-Member States’. The sign indicates that the Textblock value contains the phrase ‘EU-Member States’ and thus refers to all EU jurisdictions.