Anonymous user
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:
:::* == Strictly Equal To
:::* << Strictly Less Than▼
:::* \== Strictly Not Equal To▼
:::*
:::*
:::*
:::* \
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>
▲:::* << Strictly Less Than
'''output''' (when executed on an ASCII system):
<pre>
|