I am wondering if there is a way in a template to check the number of assets in a field in order to output different layouts based on the number?

In my case, I have an assets field with images. If there is only one image, I would like to simply post it on the page. If there are multiple images, I would like to format it with different HTML for a gallery.


Answered by Chris Barr! Go to answer.