Only show PHP object if more than x comments or if an other object is enabled

I have two PHP objects

[php]if(function_exists(‘wp_commentnavi’)) { wp_commentnavi(); }[/php] which is the comment pagination

and

[php]if(function_exists(‘wp_commentnavi_all_comments_link’)) { wp_commentnavi_all_comments_link(); }[/php] which is the all comments link.

I would like the second, all the comments link, to be only displayed if

a) there are more than x comments OR

b) if the comment pagination isn’t displayed neither should the all comments link.

Essentially I want to say display all comments link if there are more than x comments, if not don’t display all comments link.
Anyone know the code required to do this?
Thanks in advance!

Sponsor our Newsletter | Privacy Policy | Terms of Service