[REBOL] Re: Testing block of types
From: antonr:iinet:au at: 20-Oct-2003 12:59
This might help: foreach [cond code][ series? [print "series" break] number? [print "number"] ][if do reduce [cond value] code] when value is a series or number. Don't forget this either: value: 'hello switch type?/word value [integer! ["pants"] word! ["shirt"]] ;== "shirt" Anton.