Is there a way for me inside a functionto do some conditional logic based on the existence of a rowlike
if exists select userId from users where usrId = $1 do somethingelse do something else
Thanks,
Alex.