Data editing > Data-mapped variables > Testing the value of a data-mapped variable > Test the numeric value
 
Test the numeric value
Regardless of the kind of data being stored, you can always test the numerical value of a data-mapped variable by using the standard logical operators:
.eq.
.ne.
.lt.
.le.
.ge.
.gt.
Quantum determines the numerical value of a data-mapped variable as follows:
If the data-mapped variable contains a numerical value, then the value of the variable is tested.
If the data-mapped variable contains a single categorical response, then the value of the variable is the response number (that is, the first response is counted as 1).
If the data-mapped variable contains several categorical responses, the value of the variable is zero.
Finally, if the data-mapped variable is unset, then the value of the variable is zero.
See also
Testing the value of a data-mapped variable