I always use the construct:
x = (y==5)
for this. The (redundant) parentheses highlight the fact that the
comparison operator results in a boolean expression. I don't mind
the few microseconds it takes the compiler to skip the parens...
--
Ben Cranston ...seismo!umcp-cs!zben zben at umd2.ARPA