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

[REBOL] Rebol/Core User's Guide Re:(2)

From: lmecir:geocities at: 11-Oct-2000 18:08

Hi Joel, I knew about that issue, but considered the Throw attribute as absolutely necessary in this case (the chapter follows the one describing Throw/Catch attributes AFAIR). You are right. To be correct, it should have been like this: ifs: func [ {If positive do block 1, zero do block 2, minus do 3} [throw] condition [number!] block1 [block!] block2 [block!] block3 [block!] ] [ either positive? condition [do block1] [ either negative? condition [do block3] [do block2] ] ] Regards Ladislav