if S_CLOSE_LIST
else if S_IS_CATEGORY
else

It's just a bit cleaner :)