This is my statement
IF (@UserName IS NULL AND @EditorKey IS NULL) OR (@UserName IS NOT NULL AND @EditorKey IS NOT NULL) BEGIN RAISERROR (\'One of @UserName,
As a cheat, you can do:
If @UserName+@EditorKey is null and coalesce(@UserName,@EditorKey) is not null
It's shorter, but that may be the only thing it has going for it.