• ok solved it

    someone suggested this on another forum:-

    AND @ulang <> 'al' AND lang.langCode = @ulang

    and ((@uid=0 AND lc.string LIKE '%' + @STR + '%') or (@uid=1 AND lc.string = @STR))