# How can I make a break in the block until the deleterow or getrow is done

**URL:** <https://community.thunkable.com/t/how-can-i-make-a-break-in-the-block-until-the-deleterow-or-getrow-is-done/219065>\
**Category:** Questions about Thunkable X\
**Created:** [September 10, 2019, 8:10am UTC](https://community.thunkable.com/t/how-can-i-make-a-break-in-the-block-until-the-deleterow-or-getrow-is-done/219065 "2019-09-10T08:10:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [September 10, 2019, 8:10am UTC](https://community.thunkable.com/t/how-can-i-make-a-break-in-the-block-until-the-deleterow-or-getrow-is-done/219065/1 "2019-09-10T08:10:16Z")

</div>

I use some airtable blocks.  
But I have this problem, that the program continue before the deleteRow or getRow is done.  
How can I solve this???  
I think I have seen a way to do it but can not find it in the forum.

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

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [September 10, 2019, 10:04am UTC](https://community.thunkable.com/t/how-can-i-make-a-break-in-the-block-until-the-deleterow-or-getrow-is-done/219065/2 "2019-09-10T10:04:03Z")

</div>

Hi, @funhall! 👋  
I have experienced this **a lot.**

* * *

## Here’s the solution -

In the first big block, **Airtable.GetColumn** , drag everything, including the **cout\_with\_i** loop, below the **set APP length\_date to length\_of\_column.** & everything goes the same…

> I have made some blocks for u, have a look at them -

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

* * *

# The Key

When u add block below blocks, the compiler starts every block simultaneously.  
Example, if u take **for loop** and add a **Spreadsheet get column** , the app will start the **for loop** , and immediately it will call **get column.** The for loop continues it’s work, & simultaneously the get\_column continues it’s work.  
What we expect is, when the for loop ends completely, then only get the column. It does not do that.  
So, add all your blocks in the then do area - (as the name suggests, when the function ends completely, then only the proceeding blocks are started 😉)  
The count loop should be inside the **then do area.**

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

* * *

* * *

Hope I helped you! 😄

# Thanks a lot!

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [September 11, 2019, 7:26pm UTC](https://community.thunkable.com/t/how-can-i-make-a-break-in-the-block-until-the-deleterow-or-getrow-is-done/219065/3 "2019-09-11T19:26:00Z")

</div>

yes that was helpful thanks.  
But in the example in the picture below has two get data blocks below eachother. It wont work if i place them as picture nr. 2

picture nr. 1

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/c/8cc1745610a69b95604305c829546de6ea5a471e.png)  
picture nr. 2  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c46e17aa9119ad126c7b24a927d4a18413a2378e.png)

---

<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:09pm UTC](https://community.thunkable.com/t/how-can-i-make-a-break-in-the-block-until-the-deleterow-or-getrow-is-done/219065/4 "2024-11-08T12:09:03Z")

</div>


