Survey Tabulation > Advanced expressions > Operators > Comparison operators > Less than (<) operator
 
Less than (<) operator
1. Numeric variables.
mammals < 3
The mammals variable is a numeric (Long) variable that records the rating, on a scale of 1-5, that respondents gave to the Mammals gallery. The < operator compares whether the value in the variable is less than 3. For example, you could use this expression to select respondents who gave the gallery the low ratings of 1 or 2.
2. Categorical variables
location < {EUROPE, ASIA_OR_AUSTRALIA, AFRICA}
The location variable is a multiple response (Categorical) variable that records the location of other similar museums that respondents have visited. The < operator returns True if the category list on the left side is a proper subset of the category list on the right side. In this example, the operator compares the value in the variable with three specific categories and returns True if the variable contains any one or two of these categories and no others, regardless of the order in which the categories are stored in the variable. For example, you could use this expression to select respondents who have visited museums in at least one and not more than two of the specified world regions.
See also
Comparison operators