# \[Solved\] Is there any way to loop thru labels, buttons or switches?

**URL:** https://community.thunkable.com/t/solved-is-there-any-way-to-loop-thru-labels-buttons-or-switches/774466
**Category:** Questions about Thunkable X
**Tags:** solved
**Created:** [August 27, 2020, 7:37pm UTC](https://community.thunkable.com/t/solved-is-there-any-way-to-loop-thru-labels-buttons-or-switches/774466 "2020-08-27T19:37:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mrtwocanes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mrtwocanes/32/32268_2.png) [@mrtwocanes](https://community.thunkable.com/u/mrtwocanes)
#### Post date: [August 27, 2020, 7:37pm UTC](https://community.thunkable.com/t/solved-is-there-any-way-to-loop-thru-labels-buttons-or-switches/774466/1 "2020-08-27T19:37:32Z")

</div>

Is there ANY way to loop thru switches, text-boxes, labels or buttons?

Can they be put into a list somehow?

I’m sure the answer is, “No.”, but I thought I’d ask. Using 25 switches and labels on three different screens is pretty tedious when making changes. And just the sheer number of blocks slows everything down. I have to use 3 screens instead of just one or wait 3-4 minutes for the “save”.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [August 27, 2020, 7:38pm UTC](https://community.thunkable.com/t/solved-is-there-any-way-to-loop-thru-labels-buttons-or-switches/774466/2 "2020-08-27T19:38:26Z")

</div>

Yes (most likely) using an any component block can produce a list of all (insert component type) on any given screen.

---

<div class="post-metadata">

### Author: ![mrtwocanes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mrtwocanes/32/32268_2.png) [@mrtwocanes](https://community.thunkable.com/u/mrtwocanes)
#### Post date: [August 27, 2020, 8:17pm UTC](https://community.thunkable.com/t/solved-is-there-any-way-to-loop-thru-labels-buttons-or-switches/774466/3 "2020-08-27T20:17:26Z")

</div>

I always wondered what the purpose was for “Any Component”, I could have figured it out if I’d actually read all the documentation. That’s gonna save me a bunch of time…except the part where I now need to re-write my entire app. 🙃

Thanks Jared, if I was going to have any more kids, I’d name one after you. 😂

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [August 27, 2020, 10:12pm UTC](https://community.thunkable.com/t/solved-is-there-any-way-to-loop-thru-labels-buttons-or-switches/774466/4 "2020-08-27T22:12:58Z")

</div>

There are a couple of examples in the #Tutorials and DIY Guides section too.

Something like this might be helpful @mrtwocanes?

> [@Cloud based To Do list, part 1](http://community.thunkable.com/t/cloud-based-to-do-list-part-1/418469):
>
> Remix this project for yourself [https://x.thunkable.com/copy/51110cfe7be3d03586abf8bc4cdaec07](https://x.thunkable.com/copy/51110cfe7be3d03586abf8bc4cdaec07) Overview The goal for this project is to create a to-do list app that does two things: Users can click a switch to indicate they have completed a task When a task is marked completed, this should be reflected on all users devices Store switch states in the cloud Create a variable to store all the switch positions (or states) and when the app starts initialise this as an empty list [s1 cloud variab…

---

<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, 12:24pm UTC](https://community.thunkable.com/t/solved-is-there-any-way-to-loop-thru-labels-buttons-or-switches/774466/5 "2024-11-08T12:24:37Z")

</div>


