Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: curious use of LENGTH?

From: joel::neely::fedex::com at: 31-Jan-2002 10:07

Hi, Romano, Romano Paolo Tenca wrote:
> From Core 3-23 about 'if: >
> > Any suggestions on why the above wasn't written simply as > > > > PRINT S > > If 's would be empty, it would print a newline. >
If any numeric value counts as TRUE, then if length? s [print s] and print s do exactly the same thing, since the IF would always be satisfied! Hence my question, why the IF ? -jn-