Assets count conditional I have a simple question about Assets. I want to output some HTML around a set of image IF there is more than one image. If there is just one image I would output different HTML. I know how to do this easily within EE's Assets but not sure how to do it in Craft's Assets. 

In EE I would use something like:

{if photo:total_files &gt; "1"} &lt;!-- if there is more than one photo show a slideshow --&gt;
&lt;ul class="slider"&gt;
    &lt;img scr=""&gt;
&lt;/ul&gt;

{if:else} &lt;!-- if its just one photo show it... --&gt;
    &lt;img scr="" class="single"&gt;
{/if}


I think I could target the first image but not sure how to construct the full conditional.

{% if entry.photos | length %}

{% set image = entry.assetFieldHandle.first() %}
&lt;img src="{{ image.getUrl() }}" width="{{ image.getWidth() }}" height="{{ image.getHeight() }}"&gt;

{% endif %}
You're close!

{% set numberOfPhotos = entry.photos|length %}

{% if numberOfPhotos &gt; 1 %}
  {# more than one #}
{% elseif numberOfPhotos == 1 %}
  {# exactly one #}
{% else %}
  {# no photos (always handle this case...) #}
{% endif %}