I did have a global that was returning the links in the same category on a detailed page. Now with Ivan's global, I get the total count of links in a category.
But When I try to use Ivan's global like this:
<%if linkstotal($ID) > 1%><%category_links%><%endif%> I get nothing.
When I try <%linkstotal($ID)%> by itself, I do get the right count, but when compared to another number, I don't get anything...
It is a parser limitation I'm afraid, you can't use global tags inside if tags. I tried to think of a way round it but my boiled eggs need continual attention :)
If I think of anything and no-one has replied I'll let you know.
Ok..so maybe it is a limit in the template parser, as Paul stated. If so, I'm not sure if there is a way around it, without editing the parser itelf (something I would most definatly not want to do...lol)