TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: MURRAY LESSER
from: LEE ARONER
date: 1999-09-17 12:28:00
subject: Boolean boo-boos

ML> Excerpted from a message dated 05-31-99, Jack Stein to David Noon:

 DN> The LINES() function returns an integer. You were simply
 DN> lucky that the implementation at that time always returned
 DN> an integer that was conformable to Boolean usage: 0 or 1.

JS>I still don't understand this as the docs state that the built in
  >function LINES always returns a 1 or a 0, so testing for that seems
  >OK, and works OK as well, both in CREXX and OREXX.  In OREXX, as a
  >method, it returns a 0 or the number of lines remaining, which also
  >should work as it is either 0 (false) or not 0, true.  It is
  >"supposed" to work this way for files or STDIN.

ML> Hi Jack--

ML>     The only language I am familiar with that will accept any nonzero
  > value as "true" in Boolean expressions is BASIC.  Most certainly, none


   Murray, obviously I'm reading this months after it was posted, 
   but for the record, Borland's pascal can be made (tricked?) to 
   treat integers as described.

                                       LRA


 -- SPEED 2.01 #2720: == Generic Tagline, good for everyday use ==
--- Platinum Xpress/Win/Wildcat5! v2.0
* Origin: Memory Alpha - (253) 859-6200 (1:343/311)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.