I have a global set called socialNetworkContent.
Is there a way to setup a conditional to check whether any of the fields within this set have content?
So the section wouldn't display if all the fields were blank.
Something along these lines:
{% if socialNetworkContent|length %}
<section>
<div class="social">
<h1>Follow Us</h1>
<ul>
{% if socialNetworkContent.branchFacebookProfile|length %}<li><a href="{{ socialNetworkContent.branchFacebookProfile }}"><i class="fa fa-facebook fa-2x"></i></a></li>{% endif %}
{% if socialNetworkContent.branchTwitterAccount|length %}<li><a href="{{ socialNetworkContent.branchTwitterAccount }}"><i class="fa fa-twitter fa-2x"></i></a></li>{% endif %}
{% if socialNetworkContent.branchLinkedInAccount|length %}<li><a href="{{ socialNetworkContent.branchLinkedInAccount }}"><i class="fa fa-linkedin fa-2x"></i></a></li>{% endif %}
{% if socialNetworkContent.branchGooglePlusAccount|length %}<li><a href="{{ socialNetworkContent.branchGooglePlusAccount }}"><i class="fa fa-google-plus fa-2x"></i></a></li>{% endif %}
{% if socialNetworkContent.branchInstagramAccount|length %}<li><a href="{{ socialNetworkContent.branchInstagramAccount }}"><i class="fa fa-instagram fa-2x"></i></a></li>{% endif %}
{% if socialNetworkContent.branchYoutubeAccount|length %}<li><a href="{{ socialNetworkContent.branchYoutubeAccount }}"><i class="fa fa-youtube fa-2x"></i></a></li>{% endif %}
</ul>
</div>
</section>
{% endif %}