[REBOL] Re: "else" with 'switch
From: al:bri:xtra at: 18-Feb-2001 9:31
Ryan wrote:> Why doesn't 'switch work within 'either? > > testfunc: func [option][ > either option = any [("A")("B")][ > switch option [ > "A" [print "A"] > "B" [print "B"]'any tests for logic condition being false or none. To get your intent, try: any [ option = "A" option = "B" ] to return true if option is "A" or "B". I hope that helps! Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/