Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Logical expressions > Checking categorical responses
 
Checking categorical responses
You can use any suitable operator or function in the UNICOM Intelligence Scripting language for testing responses to categorical questions. However, the majority of tests can be carried out using just the operators and functions listed in the following table. For information about the full range of functions available for categorical responses, see Categorical functions and Text, categorical, and array functions.
Operators
=
Tests whether the response exactly matches a specified answer
<>
Tests whether the response does not exactly match a specified answer
<
Tests whether the response contains a subset of specified answers but not all of them
<=
Tests whether the response contains one or more specified answers
>
Tests whether the response contains all the specified answers and at least one other answer
>=
Tests whether the response contains all specified answers, with or without additional answers
AnswerCount
Returns the number of responses chosen
ContainsAll
Tests whether the response contains all the specified answers
ContainsAny
Tests whether the response contains at least one of the specified answers
ContainsSome
Tests whether the response contains a given number of the specified answers
More information
Find the number of responses chosen for a question: see Number of responses chosen
Check whether the respondent chose all the answers in a given set: see All the specified responses chosen
Check whether the respondent chose at least one answer from a given set: see At least one of the specified responses chosen
Check whether the respondent chose a specified number of answers from a given set: see A given number of specified responses chosen
See also
Logical expressions