Getting closer. But how come...
>> testfunc "B"
C
Why doesn't 'switch work within 'either?
testfunc: func [option][
either option = any [("A")("B")][
switch option [
"A" [print "A"]
"B" [print "B"]
]
][
print "C"
]
]
-Ryan
>I'm trying to develop else-like logic using 'switch...
>
>testfunc: func [option][
> switch option [
> "A" [print "A"]
> "B" [print "B"]
> (not (all ["A" "B"])) [print "C"]
> ]
>]
>
>The above function doesn't work. Is there a way to get this to work?
>
>-Ryan
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.