sorry for being late, but note that this works, straight out of the box:

describe: func [x [integer!] y [integer!]] [
        switch true compose [
                (x = 1) ["X is one"]
                (y = 1) ["Y is one"]
                (x = 2) ["X is two"]
                (y = 2) ["Y is two"]
                (true)  ["X and Y are too big!"]
        ]
]


notice that its as easy to use as pif (its also 10% faster, on my computer).


>> describe 1 1
== "X is one"
 >> describe 2 1
== "Y is one"
 >> describe 2 2
== "X is two"
 >> describe 3 2
== "Y is two"
 >> describe 3 3
== "X and Y are too big!"





-Max
 

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to