In my opinion there are only five possibilities.

It can be done by select...case...endselect.

This should do it:
Code:
Select

Case $a<> $b AND $b <> $c AND $c <> $a
?"no vars are the same"
;
Case $a = $b AND $b = $c AND $c = $a
?"all vars are the same"
;
Case $a = $b AND $b <> $c AND $c <> $a
?"a and b are the same"
;
Case $a <> $b AND $b = $c AND $c <> $a
?"b and c are the same"
;
Case $a <> $b AND $b <> $c AND $c = $a
?"a and c are the same"
EndSelect



Little explanation:
First I came up with eight possibilities too but there are three examples that can never bee true like when

Code:

$a <> $b and $b = $c and $c = $a



This one can never bee true because a is not equal to b, b is equal to c and c should be equal to a. If this is true the a should be equal to b witch is it not. So only five possibilities according to me.

[edit]
5 possibilities
[/edit]


Edited by R2D2 (2004-07-27 02:07 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.