Hi, On Tuesday, September 13, 2005, 3:27:46 PM, you wrote:
> if none? content or to-logic find content <html> [print "Download failure!" REBOL sees that as: if none? (content or to-logic find content <html>) ... while you want: if (none? content) or to-logic find ... CONTENT is not a logic! value, so you get the "strange" error message. Anyway, with OR you'd get another problem, because if CONTENT is NONE, the FIND is still evaluated. That's why you really need to use ANY instead, which is "lazy" and won't try the FIND if CONTENT is NONE. Using ANY, you don't need the TO-LOGIC anymore either (BTW, FOUND? is more readable in this case). Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> --- http://www.rebol.com/ Colella Chiara software division --- http://www.colellachiara.com/ -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
