Richard You are right, XOr won't do it, You wil need the strange construct: Exclusive Not And:
Code:
Function xNotAnd($a,$b)
$xNotAnd = ($a ^ $b) & ($a | $b)
EndFunction



-Erik