They can be OR'd together, since modifiers can be pressed simultaneously.
( mod == ( LeftShiftModifier | RightAltModifier ) )...