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

[REBOL] Re: Summing a list

From: dhsunanda:gma:il at: 2-Sep-2010 17:28

> I thought that "if" signature is this: > > if good-enough? nums [ bla blal] [weep weep]
That's the either signature: for a 1 3 1 [ print a either a = 2 [print true] [print false] ] Compare running the code above with this code: for a 1 3 1 [ print a if a = 2 [print true] print "it's any number" ] You can also use if/else, but most REBOLers prefer the EITHER method: http://www.rebol.com/docs/words/wif.html Sunanda.