# For Element Of Value

**URL:** <https://forum.makecode.com/t/for-element-of-value/15318>\
**Category:** Help\
**Created:** [September 12, 2022, 1:40pm UTC](https://forum.makecode.com/t/for-element-of-value/15318 "2022-09-12T13:40:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PixelDoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixeldoodle/32/24129_2.png) [@PixelDoodle](https://forum.makecode.com/u/PixelDoodle)\
**Post date:** [September 12, 2022, 1:40pm UTC](https://forum.makecode.com/t/for-element-of-value/15318/1 "2022-09-12T13:40:16Z")

</div>

I have a question. Can somebody show. me how to use **FOR ELEMENT OF VALUE**  
Help apperciated.

---

<div class="post-metadata">

**Author:** ![NxNMatrixGL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/nxnmatrixgl/32/2553_2.png) [@NxNMatrixGL](https://forum.makecode.com/u/NxNMatrixGL)\
**Post date:** [September 12, 2022, 9:20pm UTC](https://forum.makecode.com/t/for-element-of-value/15318/2 "2022-09-12T21:20:53Z")

</div>

This loop comes in handy when placing sprites over a tile in a tilemap.

Here is an example by @jwunderl that shows this use case: [https://arcade.makecode.com/02723-14827-63089-78067](https://arcade.makecode.com/02723-14827-63089-78067)

---

<div class="post-metadata">

**Author:** ![PixelDoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixeldoodle/32/24129_2.png) [@PixelDoodle](https://forum.makecode.com/u/PixelDoodle)\
**Post date:** [September 12, 2022, 9:24pm UTC](https://forum.makecode.com/t/for-element-of-value/15318/3 "2022-09-12T21:24:59Z")

</div>

@NxNMatrixGL Ok Thanks! I always look at serious projects And I see that and it always confuses me.

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [March 15, 2023, 12:48am UTC](https://forum.makecode.com/t/for-element-of-value/15318/4 "2023-03-15T00:48:56Z")

</div>

It’s also useful when you want to control a singular sprite that has many duplicates.

---

<div class="post-metadata">

**Author:** ![PixelDoodle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixeldoodle/32/24129_2.png) [@PixelDoodle](https://forum.makecode.com/u/PixelDoodle)\
**Post date:** [March 15, 2023, 5:26pm UTC](https://forum.makecode.com/t/for-element-of-value/15318/5 "2023-03-15T17:26:36Z")

</div>

I already figured it out like 4 months ago (This topic is old 😅 )

Thanks though!
