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

[REBOL] Multiple Word Conditional?

From: rsnell::webtrends::com at: 16-Nov-2000 9:33

Given three mutually exclusive refinements in a function (or just three words in a script), what is the best way to perform the conditional? one: false two: false three: true Of course we can do: either one [print "1"] [either two [print "2"][print "3"]] but this gets ugly for more than three words and I thought that someone recently posted a trick using 'any that made this simpler and more readable. Can't find it though. Any suggestions? Thanks, Rodney