# When Stored variable initializes or changes block does not work

**URL:** <https://community.thunkable.com/t/when-stored-variable-initializes-or-changes-block-does-not-work/3700253>\
**Category:** Issues / Bugs\
**Created:** [March 30, 2025, 3:55am UTC](https://community.thunkable.com/t/when-stored-variable-initializes-or-changes-block-does-not-work/3700253 "2025-03-30T03:55:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbcodes451](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mbcodes451](https://community.thunkable.com/u/mbcodes451)\
**Post date:** [March 30, 2025, 3:55am UTC](https://community.thunkable.com/t/when-stored-variable-initializes-or-changes-block-does-not-work/3700253/1 "2025-03-30T03:55:52Z")

</div>

Hi Thunkable,

We are a group of students working on Thunkable for the first time. Here is the link to my program.

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

When the button is clicked we set elgh to true and then modify the value of abcd. I was expecting the “when stored variable initalizes… block” to trigger. It does not work. Please help.

---

<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:** [March 30, 2025, 6:38am UTC](https://community.thunkable.com/t/when-stored-variable-initializes-or-changes-block-does-not-work/3700253/2 "2025-03-30T06:38:22Z")

</div>

You’ll need to properly check for a null value. See this: [Initialize Stored Variable is not getting to null - #2 by ioannis](https://community.thunkable.com/t/initialize-stored-variable-is-not-getting-to-null/3696705/2).

---

<div class="post-metadata">

**Author:** ![rashmishekhar56enia2](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rashmishekhar56enia2](https://community.thunkable.com/u/rashmishekhar56enia2)\
**Post date:** [March 30, 2025, 1:27pm UTC](https://community.thunkable.com/t/when-stored-variable-initializes-or-changes-block-does-not-work/3700253/3 "2025-03-30T13:27:34Z")

</div>

Thanks @tatiang. I am also working in the same team. I checked the example you shared and modified my teammates program. It seems to be working. So I guess we are done. Thank you very much for the hint.

> **[Thunkable](https://x.thunkable.com/copy/5d68f54b364184261f91808290f59a9d)**
