How to handle unknown number of images/files?

I have a file field with no max_files value. I use the variable like this:

<ul>
  {{ images }}
    <li><img src="{{ value }}"></li>
  {{ /images }}
</ul>

This works when multiple images are uploaded, but if there is only one image uploaded this breaks. How do you handle a variable that may be single or multiple?

Answered by Dave!
>>>>>>> Answered <<<<<<<
5 Replies
2 Followers