I am trying to call an entry tag inside the {if no_related_entries} condition. For some reason it outputs that actual tag, {title}, as opposed to what has been entered into the field. Can you actually use a tag within this condition or does it only accept html like in the ee docs example.
http://expressionengine.com/docs/modules/weblog/related_entries.html
{exp:weblog:entries weblog="staffbio"}
{related_entries id="bio"}
{if no_related_entries}
{title}
{/if}
<a href="http://index.php?/staff/staffbio/{url_title}">{title}</a>
{/related_entries}
{/exp:weblog:entries}