# For each item 'j'

**URL:** https://community.thunkable.com/t/for-each-item-j/1022908
**Category:** Questions about Thunkable X
**Created:** [December 5, 2020, 4:27pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908 "2020-12-05T16:27:27Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 5, 2020, 4:27pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908/1 "2020-12-05T16:27:27Z")

</div>

Hi @thunkers!

Have any of you been facing trouble with this block lately?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/61cc99a1b0f160d59f45e76d1a4d7db67daafe28.png)

This block is just not executing. I have narrowed it down to this because I set the text of a label after every function stating the (function name) has been executed. The label’s text never gets set to FOR EACH ITEM DONE. That clearly points out the block at fault, because _all_ the blocks before it, yes, all the 2 blocks are getting executed! @domhnallohanlon any idea what is happening? I really need to know because I’m using a lot of the for each item block in my apps, and nothing will get executed without it.  
P.S: My favorite debugging trick is to set the text of a label after every function. Could you please use the for each item block and try the same thing, and tell me the output here?  
Thanks,  
@codeswept

---

<div class="post-metadata">

### Author: ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)
#### Post date: [December 5, 2020, 4:56pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908/2 "2020-12-05T16:56:01Z")

</div>

by the way this is a loop  
i have no problems in thunkable with controls  
it is fine

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 5, 2020, 5:36pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908/3 "2020-12-05T17:36:35Z")

</div>

ya it works fine to me

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 5, 2020, 6:06pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908/4 "2020-12-05T18:06:01Z")

</div>

@codeswept Can you post a screenshot of your blocks? That block can be a little challenging because the variable “j” can contain various types of values (string, integer, list, etc.) and if you aren’t handling it as the right type, you’ll get an error/crash.

---

<div class="post-metadata">

### Author: ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)
#### Post date: [December 5, 2020, 6:17pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908/5 "2020-12-05T18:17:49Z")

</div>

Is it disabled by any chance?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 5, 2020, 6:26pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908/6 "2020-12-05T18:26:28Z")

</div>

If you mean the entire block, no, it’s not disabled. Here’s a simple demo:

> **[Thunkable](https://x.thunkable.com/copy/2d3436a9db00d23b3888aa423b639a7e)**

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 6, 2020, 4:52am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/7 "2020-12-06T04:52:16Z")

</div>

Thanks! I do understand its functionality. But I have a feeling even yours has a glitch. It’s setting the label text to"  
1  
2  
1  
2  
3  
4  
5  
6  
7  
8  
9  
10.  
1 and 2 have repeated. I live-tested the same app 2-3 times with the same output.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 6, 2020, 4:54am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/8 "2020-12-06T04:54:10Z")

</div>

> [@Really, really stuck making a live-play game](http://community.thunkable.com/t/really-really-stuck-making-a-live-play-game/1013574/10):
>
> Thanks very much @drted! I also tried using Airtable to save scores and player names, but it’s not working. Could you share the link of this project which has this code so I can take a closer look? Here is my Airtable code: There’s no data as of now. [image] All the images have been given in sequence. Could anyone please check this out and if any, give me suggestions? Also @drted, the link for that code would be really helpful, because I am not yet good enough to …

That’s a post in another topic of mine. The screenshots contain thee blocks which are crashing in my case.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 6, 2020, 5:34am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/9 "2020-12-06T05:34:56Z")

</div>

Interesting. For me, it displays 1 through 10 in order with no repeats and no mistakes. It’s that way on Chrome on a Mac and on my iPhone in Thunkable Live.

> **[Untitled: Dec 5, 2020 9:38 PM.webm (video)](https://drive.google.com/file/d/1wZkEbjeIf9cAQKu1PLR4_CpQ058VSuC1/view)**
>
> Google Drive file.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 6, 2020, 6:29am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/10 "2020-12-06T06:29:11Z")

</div>

This is what I get:  
  
This is on a Windows computer.

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 6, 2020, 6:40am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/11 "2020-12-06T06:40:46Z")

</div>

it is getting it from airtable thats why it is refreshing and starting again

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 6, 2020, 6:46am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/12 "2020-12-06T06:46:21Z")

</div>

No, @tatiang’s project does not have Airtable, that’s a different project I made.

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 6, 2020, 6:47am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/13 "2020-12-06T06:47:34Z")

</div>

maybe show the block of tatiang’s project

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 6, 2020, 6:48am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/14 "2020-12-06T06:48:12Z")

</div>

> [@For each item 'j'](http://community.thunkable.com/t/for-each-item-j/1022908/6):
>
> If you mean the entire block, no, it’s not disabled. Here’s a simple demo:

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 6, 2020, 6:55am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/15 "2020-12-06T06:55:34Z")

</div>

it’s not problem with the loop it’s problem with screen opens  
see this first let it complete till ten and then click button see what happens

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 6, 2020, 6:55am UTC](https://community.thunkable.com/t/for-each-item-j/1022908/16 "2020-12-06T06:55:44Z")

</div>

> **[Thunkable](https://x.thunkable.com/copy/651667f3cbffe10f24d1c289447c5a92)**

---

<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:19pm UTC](https://community.thunkable.com/t/for-each-item-j/1022908/17 "2024-11-08T12:19:59Z")

</div>


