> > compare(X,Y) -> > case X == Y of > true -> > equal; > false -> > case X > Y of > true -> > greater; > false -> > smaller > end > end. > > is there a better way of writing this test? why not simply: compare(X,Y) when X > Y -> greater; compare(X,Y) when X < Y -> smaller; compare(X,Y) -> equal. r.