# \[Solved\] Change element color with loops

**URL:** <https://community.thunkable.com/t/solved-change-element-color-with-loops/1273398>\
**Category:** Questions about Thunkable X\
**Tags:** solved, loops\
**Created:** [May 10, 2021, 8:03am UTC](https://community.thunkable.com/t/solved-change-element-color-with-loops/1273398 "2021-05-10T08:03:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric95.janssonaup](https://avatars.discourse-cdn.com/v4/letter/e/eb8c5e/32.png) [@eric95.janssonaup](https://community.thunkable.com/u/eric95.janssonaup)\
**Post date:** [May 10, 2021, 8:03am UTC](https://community.thunkable.com/t/solved-change-element-color-with-loops/1273398/1 "2021-05-10T08:03:03Z")

</div>

Is there a way I can create a loop that goes through x amount of labels and changes them all one by one?  
This is how I want it to work, but its ugly and long.

 ![thunkable question1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/8/f85f8ead453843309c38d240bedfe75e87672a73.png)

What I want it to be is more like this.

![thunkable question2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/02a84642350db03abc86f65850a050d2669ddb12.png)

(Note: in labelx, the x represents the incrementer. I.e. label1, label2…)

I tried putting my 4 labels in a list but didn’t manage to get things working.

Any ideas?

---

<div class="post-metadata">

**Author:** ![roumak-coder](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@roumak-coder](https://community.thunkable.com/u/roumak-coder)\
**Post date:** [May 10, 2021, 8:18am UTC](https://community.thunkable.com/t/solved-change-element-color-with-loops/1273398/2 "2021-05-10T08:18:44Z")

</div>

You can use the `any component` blocks.

---

<div class="post-metadata">

**Author:** ![eric95.janssonaup](https://avatars.discourse-cdn.com/v4/letter/e/eb8c5e/32.png) [@eric95.janssonaup](https://community.thunkable.com/u/eric95.janssonaup)\
**Post date:** [May 10, 2021, 8:32am UTC](https://community.thunkable.com/t/solved-change-element-color-with-loops/1273398/3 "2021-05-10T08:32:25Z")

</div>

It wasn’t harder than that. xD  
Thanks!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/solved-change-element-color-with-loops/1273398/4 "2024-11-08T13:22:38Z")

</div>


