# Get n'th element of an array

**URL:** <https://community.glideapps.com/t/get-nth-element-of-an-array/33941>\
**Category:** Ask for Help\
**Created:** [November 2, 2021, 10:58pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941 "2021-11-02T22:58:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [November 2, 2021, 10:58pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941/1 "2021-11-02T22:58:02Z")

</div>

Maybe it’s dead simple - but I just dont’t know 😑  
How do I get the n’th element from an array.

I was doing an image/color palette column with 5 elements - and now I would like to extract number 2 in the array.

How to do that?

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [November 2, 2021, 11:02pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941/2 "2021-11-02T23:02:57Z")

</div>

Hola @Krivo

You can do that by using a Single Value column and set it to Get “From Start”  
The 2nd element in the array should be 1

 ![Screen Shot 2021-11-02 at 4.03.38 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/1/21d4260b46383bc030e9447e80d96da74da12c24.png)

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [November 2, 2021, 11:07pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941/3 "2021-11-02T23:07:41Z")

</div>

Thx @SantiagoPerez

That’s what I thought would work. But maybe color palette (plugin) isn’t an array. It takes all values in

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/f/cff4db251c38531975ee3612850d2919b9fc03aa.png)

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [November 2, 2021, 11:15pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941/4 "2021-11-02T23:15:59Z")

</div>

Hey @Krivo

It is working for me.

 ![Screen Shot 2021-11-02 at 4.14.04 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/2/12b6d980d7c9aa4bc53965b981a95dc5a4c46399.png)

 ![Screen Shot 2021-11-02 at 4.14.40 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/c/fc3263aa100e3ac8e68744c10c65f6d73a1e326e.jpeg)

 ![Screen Shot 2021-11-02 at 4.15.45 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/f/3f5c7355e70ad916bc8de409b696e439046bcf66.png)

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [November 2, 2021, 11:27pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941/5 "2021-11-02T23:27:12Z")

</div>

@SantiagoPerez Thanks.

I did it in a way I thought would be the same - but it wasn’t.  
Arh - it returned the second row - not the second item in the color palette column

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/1/b1c41802e184219bf983bdd56430167574b13025.png)

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [November 2, 2021, 11:30pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941/6 "2021-11-02T23:30:22Z")

</div>

@Krivo

Just take the array right at the beginning of the list. Not from the tables.

 ![Screen Shot 2021-11-02 at 4.29.24 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/6/c64ba95aac14c40e21ba7bd2b05704e99c2715ca.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 3, 2021, 11:30pm UTC](https://community.glideapps.com/t/get-nth-element-of-an-array/33941/7 "2021-11-03T23:30:48Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
