Thank you, that was just what I was looking for.
Sorry about that, I just experimented with a few different things and found something that worked. Thanks for your time!
Nevermind, I think I found a way to do it.
if ($this_category->category_parent == 0) {
It is needed on the index page within The Loop.
The way it is structured now, I am reading a group of categories from an array from within a for loop. I would then like to filter the categories within the for loop with an if statement (and perform an action on only the subcategories).
I was hoping there would be a function that would return TRUE if a category was a child. Unfortunately, I haven’t been able to find one like that. Any ideas?