# Value of variable app in functions (purple blocks)

**URL:** <https://community.thunkable.com/t/value-of-variable-app-in-functions-purple-blocks/2400194>\
**Category:** Questions about Thunkable X\
**Created:** [May 2, 2023, 5:40pm UTC](https://community.thunkable.com/t/value-of-variable-app-in-functions-purple-blocks/2400194 "2023-05-02T17:40:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fedegarcia30hzc97a](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@fedegarcia30hzc97a](https://community.thunkable.com/u/fedegarcia30hzc97a)\
**Post date:** [June 21, 2023, 9:04pm UTC](https://community.thunkable.com/t/value-of-variable-app-in-functions-purple-blocks/2400194/4 "2023-06-21T21:04:05Z")

</div>

Hi

Ive updated my functions so that i ensure any setCell block will not continue untill its completed to keep the process synchronous. And as you can see in the screenshot, i set the debug app variables i initialize when opening the screen depending if there is and error or not

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

Still when calling the crearLog function which will create a new row is not populating the right values

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

Screenshot of the airtable where some columns have the initiallited value instead of the one set inside the functions…

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

Any idea why this behaviour? Does the values set in app variable inside a function only remain inside that function?

---

_[View the full topic](https://community.thunkable.com/t/value-of-variable-app-in-functions-purple-blocks/2400194)._
