--- "Matthew `GrendelFish' Dockrey" wrote: And ((x && !y) || (!x && y)) is fairly clunky. --- end of quoted material --- Sorry to reply twice, but here's a slightly more elegant, slightly less obvious way: ((!!x + !!y) == 1) -manta