Control Rooster Question Yes/NO

I have a rooster preceded by a multiple choice question of type Yes/NO which triggers the rooster
inside the rooster there is a series of questions
Here is the example
S2qB08_0.what are the animal species you raise in your farm
-Rooter: Species- %rostertitle% variable name *rstProduction
See capture

I want each time we choose a modality of the question S2qB08_0 poultry attraction that it shows me the poultry sub-section knowing that the numbers of the poultry modality are from 81 to 87
and if the modalities are 10, 20, 30, 70 that it displays the sub-section bovine_ovine_caprine_camelin
I put in the condition of the poultry sub-section S2qB80.Yes.ContainsAny(81,82,83,84,85,86,87) it did not work and I tried again
rstProduction.Any(x=>x.S2qB80.Yes.ContainsAny(81,82,83,84,85,86,87)) that didn’t work either
I want some help

I have a solution thanks

@bayemanel ,

In general this is done by defining a matrix of animal types (cows, goats, pigs, chicken, etc) vs product types (milk, meat, hides, eggs, etc) and then enabling the corresponding conditional questions or subsections based on that matrix.

The effect is the same, but the advantage is that it allows you to decouple the data and the logic and have a more scalable solution.

AGRIS surveys are based on that and the UN FAO provides support in programming of questionnaires of this type in Survey Solutions

Perhaps you could reveal what you ended up doing here, as the question remained unanswered for a reader that will end on this page months from now.

Best, Sergiy