Is there a way to return the comments link instead of echoing it? I've been searching the Codex for a little while now, without being able to find a function that just returns the link and doesn't echo it.
Thanks.
Use get_comments_link(), it retrieve the link without echoing it.
This is the function that is used by comments_link()
.
See also: http://codex.wordpress.org/Function_Reference/comments_link