Hi Milo,
Hmm.. It might be that when you define $categoryname, you'll need to tell MT that you want the current entry's category. How about:
<MTSetVarBlock name="categoryname"><MTEntryCategory><MTCategoryLabel></MTEntryCategory></MTSetVarBlock>
Does that work?
When in doubt, it helps to throw <MTGetVar="$categoryname"> in there so you can see how the variable is defined, and troubleshoot why it's not matching up.
QUOTE (Milohoss @ Apr 30 2008, 04:46 PM)

Can you help me with something really basic? If I can get past this, then I think I'm ok. Just a simple list of categories with the current category having the word HELLO WORLD under it. Here's what I'm trying, obviously doesn't work:
CODE
<MTSetVarBlock name="categoryname"><MTCategoryLabel></MTSetVarBlock>
<ul>
<MTCategories>
<li><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel regex="RemoveLeadingDigits"$></a></li>
<MTIfCategory label="$categoryname">
HELLO WORLD
<MTElse>
NOTHING
</MTElse>
</MTIfCategory>
</MTCategories>
<ul>
Can you tell me what's wrong? Here's the test page -
http://www.climatecycle.com/the-ride/THANKS!!!