[REBOL] Re: Multiple Word Conditional?
From: g:santilli:tiscalinet:it at: 17-Nov-2000 11:38
Rodney Snell wrote:
> Of course we can do:
>
> either one [print "1"] [either two [print "2"][print "3"]]
print any [
if one ["1"]
if two ["2"]
if three ["3"]
"4" ; default
]
Keep in mind that ANY returns the first value found that is
different from NONE or FALSE; IF returns NONE if the condition
isn't met, else returns the result of evaluating the body block.
HTH,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/