I'm trying to create a switch statement for a single entry event template that has various entry fields associated with it (description, contact, location, etc.) from an Events Channel I have. Rather than using a bunch of IF's to display only those fields that have been populated, I'm trying to use a switch statement instead, but I can't get this to work when I based the switch on the 'entry.type." I'm trying to something like this, but it's not working. Any help would be appreciated!
{% switch entry.type %}
{% case 'contact' %}
{{ entry.contact }}
{% case 'location' %}
{{ entry.location }}
{% endswitch %}