On 2016-09-30 17:30, Dyck, Lionel B. , TRA wrote:
Here is a REXX challenge
Why does this compare results in ok
ttr = '0000E0'
if ttr = '000000' then say 'ok'; else say 'ng'
And this one works and results in ng
ttr = '0000E0'
if ttr == '000000' then say 'ok'; else say 'ng'
If you don't use strict compares, you can get this nice one:
/* REXX */
a = '2e0'
b = '2ee'
c = '1e1'
say "a =" a;
say "b =" b
say "c =" c
if a > b then
say 'a > b'
else
say 'a ^> b'
if b > c then
say 'b > c'
else
say 'b ^> c'
if c > a then
say 'c > a'
else
say 'c ^> a'
Robert
--
Robert AH Prins
robert(a)prino(d)org
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN