Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Logical expressions > Checking categorical responses > Number of responses chosen
 
Number of responses chosen
Some questions might require the respondent to choose a certain number of responses from a list. The AnswerCount function counts the number of responses chosen, and the following example shows one way in which it can be used:
DaysVisit.Ask()
If DaysVisit.AnswerCount() < 2 Then
  WhyNoMore.Ask()
End If
The DaysVisit question asks respondents which days of the week they visit the gym. Respondents who choose less than two days are asked the WhyNoMore question to find out why they do not go more frequently.
See also
Checking categorical responses