Is there an XOR operator or equivalent function in SQL Server (T-SQL)?
MS SQL only short form (since SQL Server 2012):
1=iif( a=b ,1,0)^iif( c=d ,1,0)