like (select case @search3
when (@Publication='Customer') then @SearchOn1
when (@Customer='Customer')then @SearchOn2
when (@Publication='Publication'
and @Customer='Publication')then '%'
END)
or can i use
like(IF Publication='Customer' RETURN @SearchOn1
ELSE IF Customer='Customer' RETURN @SearchOn2
ELSE IF RETURN '%')
|