# When Variable Changes block does not get called from other screens

**URL:** <https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, variables\
**Created:** [May 20, 2020, 3:42pm UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647 "2020-05-20T15:42:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirro](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kirro](https://community.thunkable.com/u/Kirro)\
**Post date:** [May 20, 2020, 3:42pm UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/1 "2020-05-20T15:42:51Z")

</div>

HI,

i wanted to use the block “When app variable changes” then do something. This variable can change on more than one screen.  
But I found out that this block is not executed when the variable changes on another screen.

Is that a bug or a wanted behaviour?

Thank you!

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [June 11, 2020, 12:02pm UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/2 "2020-06-11T12:02:16Z")

</div>

Hey @Kirro

I think that this block should be working fine - can you share a screenshot of the blocks that you are using to update your data please?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kirro](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kirro](https://community.thunkable.com/u/Kirro)\
**Post date:** [June 16, 2020, 10:43am UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/3 "2020-06-16T10:43:56Z")

</div>

Hi,

In Screen 1  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/182c81da2e78daf2830827dbf3052494b8114125.png)

In Screen 2  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/74f2abc9a4d75b69446ca122f85e6b39bdf0cc09.png)

Both the increment and decrement does not work.

Best regards

---

<div class="post-metadata">

**Author:** ![ryan\_hall\_apps](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan\_hall\_apps](https://community.thunkable.com/u/ryan_hall_apps)\
**Post date:** [June 16, 2020, 7:53pm UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/4 "2020-06-16T19:53:52Z")

</div>

This has happened to me as well. I have found it is better to use a math function.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [June 16, 2020, 8:44pm UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/5 "2020-06-16T20:44:23Z")

</div>

> [@ryan\_hall\_apps](#):
>
> I have found it is better to use a math function

@Kirro did that work for you?

---

<div class="post-metadata">

**Author:** ![thunkablest5dru](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@thunkablest5dru](https://community.thunkable.com/u/thunkablest5dru)\
**Post date:** [March 4, 2021, 7:44pm UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/6 "2021-03-04T19:44:37Z")

</div>

@Kirro I had the same problem. I added the change function to the open function so it gets called when the screen switches

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

If it changes on another page the open function picks it up and if it changes on this page the change function picks it up

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 4, 2021, 7:51pm UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/7 "2021-03-04T19:51:30Z")

</div>

The `change` event has different behaviors with `Navigators`.

If you are using the navigators then the only variable that will work across screen is the `cloud variable`. If you are not using the navigators then all variables should work as expected.

To be in the safe side use the `cloud variable` which will always work across screens.

---

<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, 11:25am UTC](https://community.thunkable.com/t/when-variable-changes-block-does-not-get-called-from-other-screens/580647/8 "2024-11-08T11:25:41Z")

</div>


