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 <[EMAIL PROTECTED]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to