Survey Tabulation > Advanced expressions > Operators > Categorical comparison operators > Less than and less than or equal to
 
Less than and less than or equal to
The less than (<) operator returns True if the list of categories on the left side is a proper subset of the list of categories on the right side. The less than or equal to (<=) operator returns True if the list of categories on the left is a subset of, or equal to, the one on the right.
Examples
Result
{1,3,6} < {1,3,6,8}
True
{1,3,6} < {1,3,8,9}
False
{1,3,6} < {1,3,6}
False
{1,3,6} <= {1,3,6}
True
{FOSSILS, BIRDS, WHALES} < {WHALES, BIRDS, FOSSILS}
False
{FOSSILS, BIRDS, WHALES} <= {WHALES, BIRDS, FOSSILS}
True
{BIRDS, FOSSILS} < {FOSSILS, BIRDS, WHALES}
True
See also
Categorical comparison operators