Try this code block:
a==6? "Family 1 Goes Here": a==2? "Family 2 Goes Here": "Family 3 Goes Here";
You can go as deep as you like, and remove the quotes to use different families which will become inputs to the node instead of strings.