[REBOL] Re: Evaluating if's
From: brett:codeconscious at: 2-Jul-2002 17:45
I should have mentioned also that ANY makes a nice "or" condition:
ANY [ this or-this or-even-this or-finally-this]
reduces each expression it encounters through the block not stopping until
it exhausts all the expressions
or it encounters one that results in a value that is not NONE and not
FALSE.
So
ANY [1 = 3 now 3]
will return the current time
Brett.
----- Original Message -----
From: "Charles" <[chalz--earthlink--net]>
To: <[rebol-list--rebol--com]>
Sent: Tuesday, July 02, 2002 1:51 PM
Subject: [REBOL] Evaluating if's
> Here's a little question. Perhaps I've been spoiled in other
languages, but
> this is starting to frustrate me. I have something like:
> if THIS and THAT []
> Thing is, if THIS is false, it continues to evaluate THAT anyways. What's
the
> point? The result is obviously false anyways. I'm working on a case like
this
> (perhaps someone can provide a more elegant solution):
> if (2 = length? p: parse filename ".") AND (not none? find pick p 2
htm
)