Developer Documentation Library > Scripting > Expressions > Operators > Comparison operators > Not equal to (<>) operator
 
Not equal to (<>) operator
Numeric variables
visits <> 3
This example is the same as the previous numeric variable example, except that the = operator has been replaced with the <> operator. The <> operator compares whether the value in the variable is unequal to 3. For example, you could use this expression to select respondents who have visited the museum either more or fewer than three times.
Categorical variables
remember <> {DINOSAURS, WHALES, HUMAN_BIOLOGY}
This example is the same as the previous categorical variable example, except that the = operator has been replaced with the <> operator. The <> operator compares the value in the variable with three specific categories and returns False if the variable contains these three categories and no others. It returns True for all other combinations of categories. For example, you could use this expression to exclude respondents who chose the Dinosaurs, Whales, and Human biology categories and no others, and to include all of the other respondents.
See
Comparison operators