Comparing data that contains missing values can return misleading results unless you specify a condition that is always true or use functions such as Is Missing() or Zero Or Missing(). Comparisons of data with mismatched types (numeric versus character) or data in matrices can also be confusing.
Some Special-Case Comparison Tests shows examples of such comparisons and matrices and explanations of the results. For a review of operators used in comparisons, see Operators. For an overview of comparing data, see “Comparison Functions” in the JSL Syntax Reference.
{a, b}==List(a, b)
|
||
1=="abc"
|
||
1<="abc"
|
||
Is Missing(m)
|
||
Summarizes elementwise comparisons; returns 1 only if all comparisons are true and returns 0 otherwise.
|
||
Summarizes elementwise comparisons; returns 1 if any comparison is true and returns 0 otherwise.
|