Is there a way to check if the next_post_link() function will return a link? I'm creating a webcomic, and for the navigation I want to use next_post_link() to point to the next comic. When there isn't a next comic, I want to show a "dimmed" out (i.e. gray colored) "Next" to give the impression that the Next button is "disabled."
Right now I have
<?php $next_link = next_post_link('%link', 'Next', TRUE);
if ($next_link == '') { ?>
<font color="#666666">Next</font>
<?php }?>
but it doesn't seem to work, and it prints out both when there is a next post.
Can anyone help?