String comparison: Difference between revisions

m
→‎version 1: prettied up the strict comparative operators. -- ~~~~
(→‎version 1: added annoucement of ASCII or EBCDIC host hardware. -- ~~~~)
m (→‎version 1: prettied up the strict comparative operators. -- ~~~~)
Line 844:
<br>in '''EBCDIC''', uppercase letters are ''higher'' then lowercase.
<br><br>Here is a list of the strict comparative operators and their meaning:
:::* &nbsp; == &nbsp; &nbsp; Strictly Equal To
:::* &nbsp; << &nbsp; &nbsp; Strictly Less Than
:::* \== Strictly Not Equal To
:::* <<&nbsp; >> &nbsp; &nbsp; Strictly LessGreater Than
:::* >>&nbsp; <<= &nbsp; Strictly GreaterLess Than or Equal To
:::* <<&nbsp; >>= &nbsp; Strictly LessGreater Than or Equal To
:::* &nbsp; \==<< &nbsp; Strictly Not EqualLess ToThan
:::* >>= Strictly Greater Than or Equal To
:::* &nbsp; \<<>> &nbsp; Strictly Not LessGreater Than
:::* \>> Strictly Not Greater Than
Note that some REXXes can use (support) characters other than a backslash ['''\'''] for a logical not ['''¬'''].
<lang rexx>/*REXX program shows different ways to compare two character strings.*/
Line 890 ⟶ 889:
caselessComp: procedure; arg a,b /*ARG uppercases the A & B args.*/
return a==b /*if exactly equal, return 1. */</lang>
 
Here is a list of the strict comparative operators and their meaning:
:::* == Strictly Equal To
:::* \== Strictly Not Equal To
:::* << Strictly Less Than
:::* >> Strictly Greater Than
:::* <<= Strictly Less Than or Equal To
:::* >>= Strictly Greater Than or Equal To
:::* \<< Strictly Not Less Than
:::* \>> Strictly Not Greater Than
Note that some REXXes can use (support) characters other than a backslash [\] for a logical "not".<br><br>
'''output''' &nbsp; (when executed on an ASCII system):
<pre>