2.5.3 Comparative Operators The Rexx comparative operators compare two terms and return the logical value 1 if the result of the comparison is true, or 0 if the result of the comparison is false. The non-strict comparative operators will ignore leading or trailing blanks for string comparisons, and leading zeros for numeric comparisons. Numeric comparisons are made if both terms to be compared are valid Rexx numbers, otherwise string comparison is done. String comparisons are case sesitive, and the shorter of the two strings is padded with blanks. The following lists the non-strict comparative operators. = Equal \=, ^= Not equal > Greater than. < Less than. >= Greater than or equal. <= Less than or equal <>, >< Greater than or less than. Same as Not equal. The following lists the strict comparative operators. For two strings to be considered equal when using the strict equal comparative operator, both strings must be the same length. == Strictly equal \==, ^== Strictly not equal. >> Strictly greater than. << Strictly less than. >>= Striclty greater than or equal. <<= Strictly less than or equal.
PREV NEXT