>>IF @Something1 >> BEGIN >> -- Select 1 >> END >>ELSE IF @Something2 >> BEGIN >> -- Select 2 >> END >>ELSE IF @Something3 >> BEGIN >> -- Select 3 >> END >>>
IF @Something1 BEGIN -- Select 1 END ELSE IF @Something2 BEGIN -- Select 2 END ELSE IF @Something3 BEGIN -- Select 3 ENDBut is formatted that way it is hard to read, isn't it?