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

[REBOL] Re: Multiple Word Conditional?

From: larry:ecotope at: 16-Nov-2000 9:59

Hi Rodney One nice way to do this is:
>> one: false
== false
>> two: false
== false
>> three: true
== true
>> >> any [all [one print "1"] all [two print "2"] all [three print "3"]]
3 Notice that ANY and ALL can return the values of any expression as well as just true and false. BTW, the construct above has the same functionality as a COND in Scheme or Lisp. HTH -Larry