# \[Solved\] For loop or control that acts like a for loop in Thunkable?

**URL:** <https://community.thunkable.com/t/solved-for-loop-or-control-that-acts-like-a-for-loop-in-thunkable/1086321>\
**Category:** Questions about Thunkable X\
**Tags:** database, beginner, airtable\
**Created:** [February 8, 2021, 4:08am UTC](https://community.thunkable.com/t/solved-for-loop-or-control-that-acts-like-a-for-loop-in-thunkable/1086321 "2021-02-08T04:08:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp72979rdrlbc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sp72979rdrlbc/32/94224_2.png) [@sp72979rdrlbc](https://community.thunkable.com/u/sp72979rdrlbc)\
**Post date:** [February 8, 2021, 4:08am UTC](https://community.thunkable.com/t/solved-for-loop-or-control-that-acts-like-a-for-loop-in-thunkable/1086321/1 "2021-02-08T04:08:27Z")

</div>

I have a data viewer that displays data from a local DB, Iḿ trying to transfer all of the data to an air table when the user clicks a button.

here the code snippet of how Iḿ attempting to do this:

 ![Screenshot 2021-02-07 at 7.42.32 PM (1)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ff78a47f20a6348c9299d2a8f0afa9cfc1ac6032.png)  
The variable ¨# Item¨ and ¨# Status¨ are both = to 1

But as you can see this won´t work because it will remake row 1 in the local DB in the Airtable however many rows there are in the local DB.

Like this:

 ![Untitled drawing](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/07a9154285c7c7e8c17e33887017cb66cdf16978.jpeg)

I thought a for loop would work and I was trying to make a for loop but iḿ not sure how to, or if there is even something like a for loop on thinkable …?

I would appreciate any help! Thank you!

---

<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:** [February 8, 2021, 5:21am UTC](https://community.thunkable.com/t/solved-for-loop-or-control-that-acts-like-a-for-loop-in-thunkable/1086321/2 "2021-02-08T05:21:47Z")

</div>

There used to be a bug with the Create Row block that prevented blocks placed within it from firing. It was described here: [Create row block not working well from yesterday (Thunkable x) · Issue #699 · thunkable/thunkable-issues · GitHub](https://github.com/thunkable/thunkable-issues/issues/699). But as far as I know, that bug was fixed.

These two blocks are both useful for looping through a list:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/c/cc8cc0302d4891ed09678a2e4be6abe63c244078.png)

The first block allows you to use “i” from the variables drawer so that you don’t have to manually increment its value as you’ve done above.

---

<div class="post-metadata">

**Author:** ![sp72979rdrlbc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sp72979rdrlbc/32/94224_2.png) [@sp72979rdrlbc](https://community.thunkable.com/u/sp72979rdrlbc)\
**Post date:** [February 10, 2021, 1:45am UTC](https://community.thunkable.com/t/solved-for-loop-or-control-that-acts-like-a-for-loop-in-thunkable/1086321/3 "2021-02-10T01:45:15Z")

</div>

Thank you 😃

---

<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:29pm UTC](https://community.thunkable.com/t/solved-for-loop-or-control-that-acts-like-a-for-loop-in-thunkable/1086321/4 "2024-11-08T13:29:31Z")

</div>


