no there is no function like this sqlserver, create your own function as follows
create function returnPositiveNumberOrZero(@val1 integer, @val2 integer) returns integer
as
begin
if @val1>=@val2 and @val1>0
return @val1
else
if @val2>@val1 and @val2>0
return @val2
else
return 0
end
and use it as follows
select dbo.returnPositiveNumberOrZero(12,48)