Is there a way to "Switch On Class"?

You can use simple boolean logic to make a macro - so no execution nodes are needed.