REXX – Comparison Functions

The following built-in Rexx Comparison Functions compare numbers and/or strings and return a value.

 

Function Description
COMPARE Returns 0 if the two input strings are identical. Otherwise, returns the position of the first character that does not match.
DATATYPE Returns a string indicating the input string is a particular data type, such as a number or character.
SYMBOL Returns this state of the symbol (variable, literal, or bad).