{exp:channel:entries channel="wods" year="{segment_3}" category="{segment_6}" month="{segment_4}" sort="desc"}
<div class="blogroll-post">
<h1><a href="http://{site_url}index.php/mojo/wod-entry/{entry_id}">{title}</a></h1>
<h3>Posted for
{categories}
{if category_id == '9' AND category_id != '11'}Boot Campers
{if:elseif category_id == '11' AND category_id != '9'}Veterans
{if:elseif category_id == '9' AND category_id == '11'}Everyone
{/if}
{/categories}
on {entry_date format="%F %j, %Y"} by {author} |</h3> <h4><a href="http://{site_url}index.php/mojo/wod-entry/{entry_id}">{comment_total} Comments</a></h4>
<h2>{wod_body}</h2>
<p><!-- end .blogroll-post --></div></p>
<p>{/exp:channel:entries}The above code will output “Boot CampersVeterans” because some entries are assigned both categories. However, I would like to output “Everyone” if both categories are assigned. How can this be accomplished?