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

[REBOL] Re: el(se)if constriction

From: g:santilli:tiscalinet:it at: 28-Oct-2000 15:34

Hello P-O! On 27-Ott-00, you wrote: PY> Here's a function I wrote that I find useable (or, is there a PY> better way of doing this ?): I usually do it this way: any [ if condition1 [ code1 true ; needed only if code might return false or none ] if condition2 [ code2 true ] ... (default code) ] It is readable and evaluates the conditions in order; it is probably faster than writing your own, too. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/