Answers.Body: <p>Image assets are returned in an array. Let's say you have an assets field with the handle of <code>images</code>. You can just use bracket notation to get the second item in the array using: <code>entry.images[1]</code>. So if you wanted to return the URL you could just do:</p>
  
  <pre><code>{{ entry.images[1].url }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-21T01:51:13.723Z
Answers.LastActivityDate: 2018-08-21T01:51:13.723Z
Answers.UserDisplayName: Tim Knight
Answers.Body: <p>In Craft 3 this should be:</p>
  <pre><code>  {% if entry.images | length &gt; 1 %}
      {% set secondImage = entry.images.1 %}
    {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-05T18:40:47.707Z
Answers.LastActivityDate: 2020-10-05T18:40:47.707Z
Answers.UserDisplayName: Document Services
Body: <p>I have an entry with an asset field that has up to 3 assets in it. If I want to load just the second asset in my template code, what's the syntax for this? (can't find any references/examples)</p>
  
Tags: <assets><assets-field>
Title: How to get second asset?
ThreadText: # How to get second asset?
  
  (Asked by: username_0 on 2018-08-20)
  
  I have an entry with an asset field that has up to 3 assets in it. If I want to load just the second asset in my template code, what's the syntax for this? (can't find any references/examples)
  
  **Tags:** assets, assets-field
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-08-21. Score: 1 | Accepted answer
  
  Image assets are returned in an array. Let's say you have an assets field with the handle of `images`. You can just use bracket notation to get the second item in the array using: `entry.images[1]`. So if you wanted to return the URL you could just do:
  
  ```
  {{ entry.images[1].url }}
  
  ```
  
  
  ---
  
  ### Answer by username_2 on 2020-10-05. Score: 2
  
  In Craft 3 this should be:
  
  ```
    {% if entry.images | length > 1 %}
      {% set secondImage = entry.images.1 %}
    {% endif %}
  
  ```
  
  
  ---
  
  