The map has three different Rules which all sit on the ‘belongs to age group’ relationship:
Figure 4: Rules on ‘belongs to age group’ relationship
The first rule will return the result ‘Adult’ if the the result for the answered object “%ABOVE_18” returns the result 1 (TRUE):
Figure 5: ‘Adult’ object specific rule
The second rule will return the result ‘Young Adults‘: when the %AGE greater 16 AND %AGE less than 18. In the expression, for variation, we assign the variable to the object, to be used in the following comparison expression:
Figure 6: ‘Young Adult’ object specific rule
The final rule will return the result ‘Teenager’ if the the result for the answered object “%UNDER_16” returns the result 1 (TRUE):
Figure 7: ‘Teenager’ object specific rule