On Sat, 12 Jan 2019, 23:43 Paul Gilmartin, < [email protected]> wrote:
> > > More concisely: > TRUE = 1 > FALSE = 0 > > These are in he Rexx Standard; you may rely on them. Nonetheless, you > may choose to assign those mnemonics for clarity. > Yes, in the standard. It was a long time ago. I can't remember now whether I didn't know it at the time, or whether I was dealing with a dodgy implementation on one of the platforms it might run on. > I consider > if flag = TRUE ... > and > if flag = FALSE ... > and > if A == B then flag = TRUE; else flag = false > > ... (which I've seen used) execrable expansions of > if flag ... > or > if \flag ... > or > flag = ( A == B ) /* Superfluous parentheses may enhance clarity. ) > > )you might as well code: > if flag = TRUE = TRUE = TRUE ... > Yes, execrable, and a sure sign the programmer needs a basic course in boolean :-) ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
